UNPKG

wallee

Version:
28 lines (27 loc) 902 B
/** * 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 {}; }