wallee
Version:
TypeScript/JavaScript client for wallee
48 lines (47 loc) • 2.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfAbstractCustomerActive = instanceOfAbstractCustomerActive;
exports.AbstractCustomerActiveFromJSON = AbstractCustomerActiveFromJSON;
exports.AbstractCustomerActiveFromJSONTyped = AbstractCustomerActiveFromJSONTyped;
exports.AbstractCustomerActiveToJSON = AbstractCustomerActiveToJSON;
exports.AbstractCustomerActiveToJSONTyped = AbstractCustomerActiveToJSONTyped;
/**
* Check if a given object implements the AbstractCustomerActive interface.
*/
function instanceOfAbstractCustomerActive(value) {
return true;
}
function AbstractCustomerActiveFromJSON(json) {
return AbstractCustomerActiveFromJSONTyped(json, false);
}
function AbstractCustomerActiveFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'metaData': json['metaData'] == null ? undefined : json['metaData'],
'emailAddress': json['emailAddress'] == null ? undefined : json['emailAddress'],
'familyName': json['familyName'] == null ? undefined : json['familyName'],
'givenName': json['givenName'] == null ? undefined : json['givenName'],
'preferredCurrency': json['preferredCurrency'] == null ? undefined : json['preferredCurrency'],
'customerId': json['customerId'] == null ? undefined : json['customerId'],
'language': json['language'] == null ? undefined : json['language'],
};
}
function AbstractCustomerActiveToJSON(json) {
return AbstractCustomerActiveToJSONTyped(json, false);
}
function AbstractCustomerActiveToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'metaData': value['metaData'],
'emailAddress': value['emailAddress'],
'familyName': value['familyName'],
'givenName': value['givenName'],
'preferredCurrency': value['preferredCurrency'],
'customerId': value['customerId'],
'language': value['language'],
};
}