DescribeCompilationJobResponse.fromJson constructor

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

Implementation

factory DescribeCompilationJobResponse.fromJson(Map<String, dynamic> json) {
  return DescribeCompilationJobResponse(
    compilationJobArn: json['CompilationJobArn'] as String,
    compilationJobName: json['CompilationJobName'] as String,
    compilationJobStatus:
        (json['CompilationJobStatus'] as String).toCompilationJobStatus(),
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    failureReason: json['FailureReason'] as String,
    inputConfig:
        InputConfig.fromJson(json['InputConfig'] as Map<String, dynamic>),
    lastModifiedTime:
        nonNullableTimeStampFromJson(json['LastModifiedTime'] as Object),
    modelArtifacts: ModelArtifacts.fromJson(
        json['ModelArtifacts'] as Map<String, dynamic>),
    outputConfig:
        OutputConfig.fromJson(json['OutputConfig'] as Map<String, dynamic>),
    roleArn: json['RoleArn'] as String,
    stoppingCondition: StoppingCondition.fromJson(
        json['StoppingCondition'] as Map<String, dynamic>),
    compilationEndTime: timeStampFromJson(json['CompilationEndTime']),
    compilationStartTime: timeStampFromJson(json['CompilationStartTime']),
    modelDigests: json['ModelDigests'] != null
        ? ModelDigests.fromJson(json['ModelDigests'] as Map<String, dynamic>)
        : null,
  );
}