wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCustomerEmailAddressListResponse = instanceOfCustomerEmailAddressListResponse;
exports.CustomerEmailAddressListResponseFromJSON = CustomerEmailAddressListResponseFromJSON;
exports.CustomerEmailAddressListResponseFromJSONTyped = CustomerEmailAddressListResponseFromJSONTyped;
exports.CustomerEmailAddressListResponseToJSON = CustomerEmailAddressListResponseToJSON;
exports.CustomerEmailAddressListResponseToJSONTyped = CustomerEmailAddressListResponseToJSONTyped;
const RestCustomerEmailAddress_1 = require("./RestCustomerEmailAddress");
/**
* Check if a given object implements the CustomerEmailAddressListResponse interface.
*/
function instanceOfCustomerEmailAddressListResponse(value) {
return true;
}
function CustomerEmailAddressListResponseFromJSON(json) {
return CustomerEmailAddressListResponseFromJSONTyped(json, false);
}
function CustomerEmailAddressListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RestCustomerEmailAddress_1.RestCustomerEmailAddressFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function CustomerEmailAddressListResponseToJSON(json) {
return CustomerEmailAddressListResponseToJSONTyped(json, false);
}
function CustomerEmailAddressListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}