wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCurrencySearchResponse = instanceOfCurrencySearchResponse;
exports.CurrencySearchResponseFromJSON = CurrencySearchResponseFromJSON;
exports.CurrencySearchResponseFromJSONTyped = CurrencySearchResponseFromJSONTyped;
exports.CurrencySearchResponseToJSON = CurrencySearchResponseToJSON;
exports.CurrencySearchResponseToJSONTyped = CurrencySearchResponseToJSONTyped;
const RestCurrency_1 = require("./RestCurrency");
/**
* Check if a given object implements the CurrencySearchResponse interface.
*/
function instanceOfCurrencySearchResponse(value) {
return true;
}
function CurrencySearchResponseFromJSON(json) {
return CurrencySearchResponseFromJSONTyped(json, false);
}
function CurrencySearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RestCurrency_1.RestCurrencyFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function CurrencySearchResponseToJSON(json) {
return CurrencySearchResponseToJSONTyped(json, false);
}
function CurrencySearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}