UNPKG

wallee

Version:
30 lines (29 loc) 980 B
import { RestCurrencyFromJSON, } from './RestCurrency'; /** * Check if a given object implements the CurrencyListResponse interface. */ export function instanceOfCurrencyListResponse(value) { return true; } export function CurrencyListResponseFromJSON(json) { return CurrencyListResponseFromJSONTyped(json, false); } export function CurrencyListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(RestCurrencyFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function CurrencyListResponseToJSON(json) { return CurrencyListResponseToJSONTyped(json, false); } export function CurrencyListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }