LabelingJobForWorkteamSummary.fromJson constructor

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

Implementation

factory LabelingJobForWorkteamSummary.fromJson(Map<String, dynamic> json) {
  return LabelingJobForWorkteamSummary(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    jobReferenceCode: json['JobReferenceCode'] as String,
    workRequesterAccountId: json['WorkRequesterAccountId'] as String,
    labelCounters: json['LabelCounters'] != null
        ? LabelCountersForWorkteam.fromJson(
            json['LabelCounters'] as Map<String, dynamic>)
        : null,
    labelingJobName: json['LabelingJobName'] as String?,
    numberOfHumanWorkersPerDataObject:
        json['NumberOfHumanWorkersPerDataObject'] as int?,
  );
}