UNPKG

wallee

Version:
28 lines (27 loc) 877 B
/** * Check if a given object implements the PersistableCurrencyAmount interface. */ export function instanceOfPersistableCurrencyAmount(value) { return true; } export function PersistableCurrencyAmountFromJSON(json) { return PersistableCurrencyAmountFromJSONTyped(json, false); } export function PersistableCurrencyAmountFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'amount': json['amount'] == null ? undefined : json['amount'], 'currency': json['currency'] == null ? undefined : json['currency'], }; } export function PersistableCurrencyAmountToJSON(json) { return PersistableCurrencyAmountToJSONTyped(json, false); } export function PersistableCurrencyAmountToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }