wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRestCurrency = instanceOfRestCurrency;
exports.RestCurrencyFromJSON = RestCurrencyFromJSON;
exports.RestCurrencyFromJSONTyped = RestCurrencyFromJSONTyped;
exports.RestCurrencyToJSON = RestCurrencyToJSON;
exports.RestCurrencyToJSONTyped = RestCurrencyToJSONTyped;
/**
* Check if a given object implements the RestCurrency interface.
*/
function instanceOfRestCurrency(value) {
return true;
}
function RestCurrencyFromJSON(json) {
return RestCurrencyFromJSONTyped(json, false);
}
function RestCurrencyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'fractionDigits': json['fractionDigits'] == null ? undefined : json['fractionDigits'],
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
'numericCode': json['numericCode'] == null ? undefined : json['numericCode'],
};
}
function RestCurrencyToJSON(json) {
return RestCurrencyToJSONTyped(json, false);
}
function RestCurrencyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}