UNPKG

wallee

Version:
37 lines (36 loc) 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfStaticValue = instanceOfStaticValue; exports.StaticValueFromJSON = StaticValueFromJSON; exports.StaticValueFromJSONTyped = StaticValueFromJSONTyped; exports.StaticValueToJSON = StaticValueToJSON; exports.StaticValueToJSONTyped = StaticValueToJSONTyped; /** * Check if a given object implements the StaticValue interface. */ function instanceOfStaticValue(value) { return true; } function StaticValueFromJSON(json) { return StaticValueFromJSONTyped(json, false); } 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'], }; } function StaticValueToJSON(json) { return StaticValueToJSONTyped(json, false); } function StaticValueToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }