wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 1.2 kB
JavaScript
/**
* Check if a given object implements the RestLanguage interface.
*/
export function instanceOfRestLanguage(value) {
return true;
}
export function RestLanguageFromJSON(json) {
return RestLanguageFromJSONTyped(json, false);
}
export function RestLanguageFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'primaryOfGroup': json['primaryOfGroup'] == null ? undefined : json['primaryOfGroup'],
'countryCode': json['countryCode'] == null ? undefined : json['countryCode'],
'iso2Code': json['iso2Code'] == null ? undefined : json['iso2Code'],
'name': json['name'] == null ? undefined : json['name'],
'ietfCode': json['ietfCode'] == null ? undefined : json['ietfCode'],
'iso3Code': json['iso3Code'] == null ? undefined : json['iso3Code'],
'pluralExpression': json['pluralExpression'] == null ? undefined : json['pluralExpression'],
};
}
export function RestLanguageToJSON(json) {
return RestLanguageToJSONTyped(json, false);
}
export function RestLanguageToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}