UNPKG

wallee

Version:
37 lines (36 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCustomerAddressListResponse = instanceOfCustomerAddressListResponse; exports.CustomerAddressListResponseFromJSON = CustomerAddressListResponseFromJSON; exports.CustomerAddressListResponseFromJSONTyped = CustomerAddressListResponseFromJSONTyped; exports.CustomerAddressListResponseToJSON = CustomerAddressListResponseToJSON; exports.CustomerAddressListResponseToJSONTyped = CustomerAddressListResponseToJSONTyped; const CustomerAddress_1 = require("./CustomerAddress"); /** * Check if a given object implements the CustomerAddressListResponse interface. */ function instanceOfCustomerAddressListResponse(value) { return true; } function CustomerAddressListResponseFromJSON(json) { return CustomerAddressListResponseFromJSONTyped(json, false); } function CustomerAddressListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(CustomerAddress_1.CustomerAddressFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function CustomerAddressListResponseToJSON(json) { return CustomerAddressListResponseToJSONTyped(json, false); } function CustomerAddressListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }