UNPKG

wallee

Version:
37 lines (36 loc) 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfCountryListResponse = instanceOfCountryListResponse; exports.CountryListResponseFromJSON = CountryListResponseFromJSON; exports.CountryListResponseFromJSONTyped = CountryListResponseFromJSONTyped; exports.CountryListResponseToJSON = CountryListResponseToJSON; exports.CountryListResponseToJSONTyped = CountryListResponseToJSONTyped; const RestCountry_1 = require("./RestCountry"); /** * Check if a given object implements the CountryListResponse interface. */ function instanceOfCountryListResponse(value) { return true; } function CountryListResponseFromJSON(json) { return CountryListResponseFromJSONTyped(json, false); } function CountryListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(RestCountry_1.RestCountryFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function CountryListResponseToJSON(json) { return CountryListResponseToJSONTyped(json, false); } function CountryListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }