UNPKG

wallee

Version:
36 lines (35 loc) 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfConditionType = instanceOfConditionType; exports.ConditionTypeFromJSON = ConditionTypeFromJSON; exports.ConditionTypeFromJSONTyped = ConditionTypeFromJSONTyped; exports.ConditionTypeToJSON = ConditionTypeToJSON; exports.ConditionTypeToJSONTyped = ConditionTypeToJSONTyped; /** * Check if a given object implements the ConditionType interface. */ function instanceOfConditionType(value) { return true; } function ConditionTypeFromJSON(json) { return ConditionTypeFromJSONTyped(json, false); } function ConditionTypeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], }; } function ConditionTypeToJSON(json) { return ConditionTypeToJSONTyped(json, false); } function ConditionTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }