wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRestCountryState = instanceOfRestCountryState;
exports.RestCountryStateFromJSON = RestCountryStateFromJSON;
exports.RestCountryStateFromJSONTyped = RestCountryStateFromJSONTyped;
exports.RestCountryStateToJSON = RestCountryStateToJSON;
exports.RestCountryStateToJSONTyped = RestCountryStateToJSONTyped;
/**
* Check if a given object implements the RestCountryState interface.
*/
function instanceOfRestCountryState(value) {
return true;
}
function RestCountryStateFromJSON(json) {
return RestCountryStateFromJSONTyped(json, false);
}
function RestCountryStateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'code': json['code'] == null ? undefined : json['code'],
'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
'name': json['name'] == null ? undefined : json['name'],
'id': json['id'] == null ? undefined : json['id'],
};
}
function RestCountryStateToJSON(json) {
return RestCountryStateToJSONTyped(json, false);
}
function RestCountryStateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}