wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.07 kB
JavaScript
import { RestCurrencyFromJSON, } from './RestCurrency';
/**
* Check if a given object implements the CurrencySearchResponse interface.
*/
export function instanceOfCurrencySearchResponse(value) {
return true;
}
export function CurrencySearchResponseFromJSON(json) {
return CurrencySearchResponseFromJSONTyped(json, false);
}
export function CurrencySearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RestCurrencyFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function CurrencySearchResponseToJSON(json) {
return CurrencySearchResponseToJSONTyped(json, false);
}
export function CurrencySearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}