UNPKG

wallee

Version:
38 lines (37 loc) 1.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPersistableCurrencyAmountUpdate = instanceOfPersistableCurrencyAmountUpdate; exports.PersistableCurrencyAmountUpdateFromJSON = PersistableCurrencyAmountUpdateFromJSON; exports.PersistableCurrencyAmountUpdateFromJSONTyped = PersistableCurrencyAmountUpdateFromJSONTyped; exports.PersistableCurrencyAmountUpdateToJSON = PersistableCurrencyAmountUpdateToJSON; exports.PersistableCurrencyAmountUpdateToJSONTyped = PersistableCurrencyAmountUpdateToJSONTyped; /** * Check if a given object implements the PersistableCurrencyAmountUpdate interface. */ function instanceOfPersistableCurrencyAmountUpdate(value) { return true; } function PersistableCurrencyAmountUpdateFromJSON(json) { return PersistableCurrencyAmountUpdateFromJSONTyped(json, false); } function PersistableCurrencyAmountUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'amount': json['amount'] == null ? undefined : json['amount'], 'currency': json['currency'] == null ? undefined : json['currency'], }; } function PersistableCurrencyAmountUpdateToJSON(json) { return PersistableCurrencyAmountUpdateToJSONTyped(json, false); } function PersistableCurrencyAmountUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'amount': value['amount'], 'currency': value['currency'], }; }