CreateDataLabelingJobRequest.fromJson constructor

CreateDataLabelingJobRequest.fromJson(
  1. Object? j
)

Implementation

factory CreateDataLabelingJobRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CreateDataLabelingJobRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    dataLabelingJob: switch (json['dataLabelingJob']) {
      null => null,
      Object $1 => DataLabelingJob.fromJson($1),
    },
  );
}