UNPKG

wallee

Version:
31 lines (30 loc) 1.01 kB
import { FeatureFromJSON, } from './Feature'; /** * Check if a given object implements the ManualTaskType interface. */ export function instanceOfManualTaskType(value) { return true; } export function ManualTaskTypeFromJSON(json) { return ManualTaskTypeFromJSONTyped(json, false); } export function ManualTaskTypeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'features': json['features'] == null ? undefined : (new Set(json['features'].map(FeatureFromJSON))), 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], }; } export function ManualTaskTypeToJSON(json) { return ManualTaskTypeToJSONTyped(json, false); } export function ManualTaskTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }