wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 904 B
JavaScript
/**
* Check if a given object implements the StaticValue interface.
*/
export function instanceOfStaticValue(value) {
return true;
}
export function StaticValueFromJSON(json) {
return StaticValueFromJSONTyped(json, false);
}
export function StaticValueFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'features': json['features'] == null ? undefined : json['features'],
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
export function StaticValueToJSON(json) {
return StaticValueToJSONTyped(json, false);
}
export function StaticValueToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}