LabelingJobSummary.fromJson constructor

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

Implementation

factory LabelingJobSummary.fromJson(Map<String, dynamic> json) {
  return LabelingJobSummary(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    labelCounters:
        LabelCounters.fromJson(json['LabelCounters'] as Map<String, dynamic>),
    labelingJobArn: json['LabelingJobArn'] as String,
    labelingJobName: json['LabelingJobName'] as String,
    labelingJobStatus:
        (json['LabelingJobStatus'] as String).toLabelingJobStatus(),
    lastModifiedTime:
        nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
    preHumanTaskLambdaArn: json['PreHumanTaskLambdaArn'] as String,
    workteamArn: json['WorkteamArn'] as String,
    annotationConsolidationLambdaArn:
        json['AnnotationConsolidationLambdaArn'] as String?,
    failureReason: json['FailureReason'] as String?,
    inputConfig: json['InputConfig'] != null
        ? LabelingJobInputConfig.fromJson(
            json['InputConfig'] as Map<String, dynamic>)
        : null,
    labelingJobOutput: json['LabelingJobOutput'] != null
        ? LabelingJobOutput.fromJson(
            json['LabelingJobOutput'] as Map<String, dynamic>)
        : null,
  );
}