wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCustomerAddressSearchResponse = instanceOfCustomerAddressSearchResponse;
exports.CustomerAddressSearchResponseFromJSON = CustomerAddressSearchResponseFromJSON;
exports.CustomerAddressSearchResponseFromJSONTyped = CustomerAddressSearchResponseFromJSONTyped;
exports.CustomerAddressSearchResponseToJSON = CustomerAddressSearchResponseToJSON;
exports.CustomerAddressSearchResponseToJSONTyped = CustomerAddressSearchResponseToJSONTyped;
const CustomerAddress_1 = require("./CustomerAddress");
/**
* Check if a given object implements the CustomerAddressSearchResponse interface.
*/
function instanceOfCustomerAddressSearchResponse(value) {
return true;
}
function CustomerAddressSearchResponseFromJSON(json) {
return CustomerAddressSearchResponseFromJSONTyped(json, false);
}
function CustomerAddressSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(CustomerAddress_1.CustomerAddressFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function CustomerAddressSearchResponseToJSON(json) {
return CustomerAddressSearchResponseToJSONTyped(json, false);
}
function CustomerAddressSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}