UNPKG

wallee

Version:
35 lines (34 loc) 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfRestCustomerEmailAddress = instanceOfRestCustomerEmailAddress; exports.RestCustomerEmailAddressFromJSON = RestCustomerEmailAddressFromJSON; exports.RestCustomerEmailAddressFromJSONTyped = RestCustomerEmailAddressFromJSONTyped; exports.RestCustomerEmailAddressToJSON = RestCustomerEmailAddressToJSON; exports.RestCustomerEmailAddressToJSONTyped = RestCustomerEmailAddressToJSONTyped; /** * Check if a given object implements the RestCustomerEmailAddress interface. */ function instanceOfRestCustomerEmailAddress(value) { return true; } function RestCustomerEmailAddressFromJSON(json) { return RestCustomerEmailAddressFromJSONTyped(json, false); } 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'])), }; } function RestCustomerEmailAddressToJSON(json) { return RestCustomerEmailAddressToJSONTyped(json, false); } function RestCustomerEmailAddressToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }