UNPKG

wallee

Version:
37 lines (36 loc) 1.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionListResponse = instanceOfSubscriptionListResponse; exports.SubscriptionListResponseFromJSON = SubscriptionListResponseFromJSON; exports.SubscriptionListResponseFromJSONTyped = SubscriptionListResponseFromJSONTyped; exports.SubscriptionListResponseToJSON = SubscriptionListResponseToJSON; exports.SubscriptionListResponseToJSONTyped = SubscriptionListResponseToJSONTyped; const Subscription_1 = require("./Subscription"); /** * Check if a given object implements the SubscriptionListResponse interface. */ function instanceOfSubscriptionListResponse(value) { return true; } function SubscriptionListResponseFromJSON(json) { return SubscriptionListResponseFromJSONTyped(json, false); } function SubscriptionListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Subscription_1.SubscriptionFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function SubscriptionListResponseToJSON(json) { return SubscriptionListResponseToJSONTyped(json, false); } function SubscriptionListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }