wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCountrySearchResponse = instanceOfCountrySearchResponse;
exports.CountrySearchResponseFromJSON = CountrySearchResponseFromJSON;
exports.CountrySearchResponseFromJSONTyped = CountrySearchResponseFromJSONTyped;
exports.CountrySearchResponseToJSON = CountrySearchResponseToJSON;
exports.CountrySearchResponseToJSONTyped = CountrySearchResponseToJSONTyped;
const RestCountry_1 = require("./RestCountry");
/**
* Check if a given object implements the CountrySearchResponse interface.
*/
function instanceOfCountrySearchResponse(value) {
return true;
}
function CountrySearchResponseFromJSON(json) {
return CountrySearchResponseFromJSONTyped(json, false);
}
function CountrySearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(RestCountry_1.RestCountryFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function CountrySearchResponseToJSON(json) {
return CountrySearchResponseToJSONTyped(json, false);
}
function CountrySearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}