DescribeTransformJobResponse.fromJson constructor

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

Implementation

factory DescribeTransformJobResponse.fromJson(Map<String, dynamic> json) {
  return DescribeTransformJobResponse(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    modelName: json['ModelName'] as String,
    transformInput: TransformInput.fromJson(
        json['TransformInput'] as Map<String, dynamic>),
    transformJobArn: json['TransformJobArn'] as String,
    transformJobName: json['TransformJobName'] as String,
    transformJobStatus:
        (json['TransformJobStatus'] as String).toTransformJobStatus(),
    transformResources: TransformResources.fromJson(
        json['TransformResources'] as Map<String, dynamic>),
    autoMLJobArn: json['AutoMLJobArn'] as String?,
    batchStrategy: (json['BatchStrategy'] as String?)?.toBatchStrategy(),
    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,
    transformEndTime: timeStampFromJson(json['TransformEndTime']),
    transformOutput: json['TransformOutput'] != null
        ? TransformOutput.fromJson(
            json['TransformOutput'] as Map<String, dynamic>)
        : null,
    transformStartTime: timeStampFromJson(json['TransformStartTime']),
  );
}