wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 960 B
JavaScript
/**
* Check if a given object implements the RestCurrency interface.
*/
export function instanceOfRestCurrency(value) {
return true;
}
export function RestCurrencyFromJSON(json) {
return RestCurrencyFromJSONTyped(json, false);
}
export 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'],
};
}
export function RestCurrencyToJSON(json) {
return RestCurrencyToJSONTyped(json, false);
}
export function RestCurrencyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}