wallee
Version:
TypeScript/JavaScript client for wallee
28 lines (27 loc) • 797 B
JavaScript
/**
* Check if a given object implements the LocalizedString interface.
*/
export function instanceOfLocalizedString(value) {
return true;
}
export function LocalizedStringFromJSON(json) {
return LocalizedStringFromJSONTyped(json, false);
}
export function LocalizedStringFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'string': json['string'] == null ? undefined : json['string'],
'language': json['language'] == null ? undefined : json['language'],
};
}
export function LocalizedStringToJSON(json) {
return LocalizedStringToJSONTyped(json, false);
}
export function LocalizedStringToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}