TransformJob.fromJson constructor

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

Implementation

factory TransformJob.fromJson(Map<String, dynamic> json) {
  return TransformJob(
    autoMLJobArn: json['AutoMLJobArn'] as String?,
    batchStrategy: (json['BatchStrategy'] as String?)?.toBatchStrategy(),
    creationTime: timeStampFromJson(json['CreationTime']),
    dataProcessing: json['DataProcessing'] != null
        ? DataProcessing.fromJson(
            json['DataProcessing'] as Map<String, dynamic>)
        : null,
    environment: (json['Environment'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    experimentConfig: json['ExperimentConfig'] != null
        ? ExperimentConfig.fromJson(
            json['ExperimentConfig'] as Map<String, dynamic>)
        : null,
    failureReason: json['FailureReason'] as String?,
    labelingJobArn: json['LabelingJobArn'] as String?,
    maxConcurrentTransforms: json['MaxConcurrentTransforms'] as int?,
    maxPayloadInMB: json['MaxPayloadInMB'] as int?,
    modelClientConfig: json['ModelClientConfig'] != null
        ? ModelClientConfig.fromJson(
            json['ModelClientConfig'] as Map<String, dynamic>)
        : null,
    modelName: json['ModelName'] as String?,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
    transformEndTime: timeStampFromJson(json['TransformEndTime']),
    transformInput: json['TransformInput'] != null
        ? TransformInput.fromJson(
            json['TransformInput'] as Map<String, dynamic>)
        : null,
    transformJobArn: json['TransformJobArn'] as String?,
    transformJobName: json['TransformJobName'] as String?,
    transformJobStatus:
        (json['TransformJobStatus'] as String?)?.toTransformJobStatus(),
    transformOutput: json['TransformOutput'] != null
        ? TransformOutput.fromJson(
            json['TransformOutput'] as Map<String, dynamic>)
        : null,
    transformResources: json['TransformResources'] != null
        ? TransformResources.fromJson(
            json['TransformResources'] as Map<String, dynamic>)
        : null,
    transformStartTime: timeStampFromJson(json['TransformStartTime']),
  );
}