UNPKG

wallee

Version:
30 lines (29 loc) 932 B
/** * Check if a given object implements the RestCountryState interface. */ export function instanceOfRestCountryState(value) { return true; } export function RestCountryStateFromJSON(json) { return RestCountryStateFromJSONTyped(json, false); } export 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'], }; } export function RestCountryStateToJSON(json) { return RestCountryStateToJSONTyped(json, false); } export function RestCountryStateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }