UNPKG

wallee

Version:
37 lines (36 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentLinkListResponse = instanceOfPaymentLinkListResponse; exports.PaymentLinkListResponseFromJSON = PaymentLinkListResponseFromJSON; exports.PaymentLinkListResponseFromJSONTyped = PaymentLinkListResponseFromJSONTyped; exports.PaymentLinkListResponseToJSON = PaymentLinkListResponseToJSON; exports.PaymentLinkListResponseToJSONTyped = PaymentLinkListResponseToJSONTyped; const PaymentLink_1 = require("./PaymentLink"); /** * Check if a given object implements the PaymentLinkListResponse interface. */ function instanceOfPaymentLinkListResponse(value) { return true; } function PaymentLinkListResponseFromJSON(json) { return PaymentLinkListResponseFromJSONTyped(json, false); } function PaymentLinkListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentLink_1.PaymentLinkFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function PaymentLinkListResponseToJSON(json) { return PaymentLinkListResponseToJSONTyped(json, false); } function PaymentLinkListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }