UNPKG

wallee

Version:
37 lines (36 loc) 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriberListResponse = instanceOfSubscriberListResponse; exports.SubscriberListResponseFromJSON = SubscriberListResponseFromJSON; exports.SubscriberListResponseFromJSONTyped = SubscriberListResponseFromJSONTyped; exports.SubscriberListResponseToJSON = SubscriberListResponseToJSON; exports.SubscriberListResponseToJSONTyped = SubscriberListResponseToJSONTyped; const Subscriber_1 = require("./Subscriber"); /** * Check if a given object implements the SubscriberListResponse interface. */ function instanceOfSubscriberListResponse(value) { return true; } function SubscriberListResponseFromJSON(json) { return SubscriberListResponseFromJSONTyped(json, false); } function SubscriberListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Subscriber_1.SubscriberFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function SubscriberListResponseToJSON(json) { return SubscriberListResponseToJSONTyped(json, false); } function SubscriberListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }