TaskRunProperties.fromJson constructor

TaskRunProperties.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TaskRunProperties.fromJson(Map<String, dynamic> json) {
  return TaskRunProperties(
    exportLabelsTaskRunProperties:
        json['ExportLabelsTaskRunProperties'] != null
            ? ExportLabelsTaskRunProperties.fromJson(
                json['ExportLabelsTaskRunProperties'] as Map<String, dynamic>)
            : null,
    findMatchesTaskRunProperties: json['FindMatchesTaskRunProperties'] != null
        ? FindMatchesTaskRunProperties.fromJson(
            json['FindMatchesTaskRunProperties'] as Map<String, dynamic>)
        : null,
    importLabelsTaskRunProperties:
        json['ImportLabelsTaskRunProperties'] != null
            ? ImportLabelsTaskRunProperties.fromJson(
                json['ImportLabelsTaskRunProperties'] as Map<String, dynamic>)
            : null,
    labelingSetGenerationTaskRunProperties:
        json['LabelingSetGenerationTaskRunProperties'] != null
            ? LabelingSetGenerationTaskRunProperties.fromJson(
                json['LabelingSetGenerationTaskRunProperties']
                    as Map<String, dynamic>)
            : null,
    taskType: (json['TaskType'] as String?)?.toTaskType(),
  );
}