LabelingJobInputConfig.fromJson constructor

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

Implementation

factory LabelingJobInputConfig.fromJson(Map<String, dynamic> json) {
  return LabelingJobInputConfig(
    dataSource: LabelingJobDataSource.fromJson(
        json['DataSource'] as Map<String, dynamic>),
    dataAttributes: json['DataAttributes'] != null
        ? LabelingJobDataAttributes.fromJson(
            json['DataAttributes'] as Map<String, dynamic>)
        : null,
  );
}