wallee
Version:
TypeScript/JavaScript client for wallee
35 lines (34 loc) • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPersistableCurrencyAmount = instanceOfPersistableCurrencyAmount;
exports.PersistableCurrencyAmountFromJSON = PersistableCurrencyAmountFromJSON;
exports.PersistableCurrencyAmountFromJSONTyped = PersistableCurrencyAmountFromJSONTyped;
exports.PersistableCurrencyAmountToJSON = PersistableCurrencyAmountToJSON;
exports.PersistableCurrencyAmountToJSONTyped = PersistableCurrencyAmountToJSONTyped;
/**
* Check if a given object implements the PersistableCurrencyAmount interface.
*/
function instanceOfPersistableCurrencyAmount(value) {
return true;
}
function PersistableCurrencyAmountFromJSON(json) {
return PersistableCurrencyAmountFromJSONTyped(json, false);
}
function PersistableCurrencyAmountFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'amount': json['amount'] == null ? undefined : json['amount'],
'currency': json['currency'] == null ? undefined : json['currency'],
};
}
function PersistableCurrencyAmountToJSON(json) {
return PersistableCurrencyAmountToJSONTyped(json, false);
}
function PersistableCurrencyAmountToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}