UNPKG

wallee

Version:
37 lines (36 loc) 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfProductListResponse = instanceOfProductListResponse; exports.ProductListResponseFromJSON = ProductListResponseFromJSON; exports.ProductListResponseFromJSONTyped = ProductListResponseFromJSONTyped; exports.ProductListResponseToJSON = ProductListResponseToJSON; exports.ProductListResponseToJSONTyped = ProductListResponseToJSONTyped; const SubscriptionProduct_1 = require("./SubscriptionProduct"); /** * Check if a given object implements the ProductListResponse interface. */ function instanceOfProductListResponse(value) { return true; } function ProductListResponseFromJSON(json) { return ProductListResponseFromJSONTyped(json, false); } function ProductListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProduct_1.SubscriptionProductFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ProductListResponseToJSON(json) { return ProductListResponseToJSONTyped(json, false); } function ProductListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }