UNPKG

wallee

Version:
30 lines (29 loc) 969 B
import { RestCountryFromJSON, } from './RestCountry'; /** * Check if a given object implements the CountryListResponse interface. */ export function instanceOfCountryListResponse(value) { return true; } export function CountryListResponseFromJSON(json) { return CountryListResponseFromJSONTyped(json, false); } export function CountryListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(RestCountryFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function CountryListResponseToJSON(json) { return CountryListResponseToJSONTyped(json, false); } export function CountryListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }