UNPKG

wallee

Version:
37 lines (36 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCustomerListResponse = instanceOfCustomerListResponse; exports.CustomerListResponseFromJSON = CustomerListResponseFromJSON; exports.CustomerListResponseFromJSONTyped = CustomerListResponseFromJSONTyped; exports.CustomerListResponseToJSON = CustomerListResponseToJSON; exports.CustomerListResponseToJSONTyped = CustomerListResponseToJSONTyped; const Customer_1 = require("./Customer"); /** * Check if a given object implements the CustomerListResponse interface. */ function instanceOfCustomerListResponse(value) { return true; } function CustomerListResponseFromJSON(json) { return CustomerListResponseFromJSONTyped(json, false); } function CustomerListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(Customer_1.CustomerFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function CustomerListResponseToJSON(json) { return CustomerListResponseToJSONTyped(json, false); } function CustomerListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }