wallee
Version:
TypeScript/JavaScript client for wallee
28 lines (27 loc) • 902 B
JavaScript
/**
* Check if a given object implements the RestCustomerEmailAddress interface.
*/
export function instanceOfRestCustomerEmailAddress(value) {
return true;
}
export function RestCustomerEmailAddressFromJSON(json) {
return RestCustomerEmailAddressFromJSONTyped(json, false);
}
export function RestCustomerEmailAddressFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'emailAddress': json['emailAddress'] == null ? undefined : json['emailAddress'],
'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])),
};
}
export function RestCustomerEmailAddressToJSON(json) {
return RestCustomerEmailAddressToJSONTyped(json, false);
}
export function RestCustomerEmailAddressToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}