wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1 kB
JavaScript
/**
* Check if a given object implements the PersistableCurrencyAmountUpdate interface.
*/
export function instanceOfPersistableCurrencyAmountUpdate(value) {
return true;
}
export function PersistableCurrencyAmountUpdateFromJSON(json) {
return PersistableCurrencyAmountUpdateFromJSONTyped(json, false);
}
export function PersistableCurrencyAmountUpdateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'amount': json['amount'] == null ? undefined : json['amount'],
'currency': json['currency'] == null ? undefined : json['currency'],
};
}
export function PersistableCurrencyAmountUpdateToJSON(json) {
return PersistableCurrencyAmountUpdateToJSONTyped(json, false);
}
export function PersistableCurrencyAmountUpdateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'amount': value['amount'],
'currency': value['currency'],
};
}