wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCurrencyListResponse = instanceOfCurrencyListResponse;
exports.CurrencyListResponseFromJSON = CurrencyListResponseFromJSON;
exports.CurrencyListResponseFromJSONTyped = CurrencyListResponseFromJSONTyped;
exports.CurrencyListResponseToJSON = CurrencyListResponseToJSON;
exports.CurrencyListResponseToJSONTyped = CurrencyListResponseToJSONTyped;
const RestCurrency_1 = require("./RestCurrency");
/**
* Check if a given object implements the CurrencyListResponse interface.
*/
function instanceOfCurrencyListResponse(value) {
return true;
}
function CurrencyListResponseFromJSON(json) {
return CurrencyListResponseFromJSONTyped(json, false);
}
function CurrencyListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RestCurrency_1.RestCurrencyFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function CurrencyListResponseToJSON(json) {
return CurrencyListResponseToJSONTyped(json, false);
}
function CurrencyListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}