ProjectVersionDescription.fromJson constructor

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

Implementation

factory ProjectVersionDescription.fromJson(Map<String, dynamic> json) {
  return ProjectVersionDescription(
    billableTrainingTimeInSeconds:
        json['BillableTrainingTimeInSeconds'] as int?,
    creationTimestamp: timeStampFromJson(json['CreationTimestamp']),
    evaluationResult: json['EvaluationResult'] != null
        ? EvaluationResult.fromJson(
            json['EvaluationResult'] as Map<String, dynamic>)
        : null,
    manifestSummary: json['ManifestSummary'] != null
        ? GroundTruthManifest.fromJson(
            json['ManifestSummary'] as Map<String, dynamic>)
        : null,
    minInferenceUnits: json['MinInferenceUnits'] as int?,
    outputConfig: json['OutputConfig'] != null
        ? OutputConfig.fromJson(json['OutputConfig'] as Map<String, dynamic>)
        : null,
    projectVersionArn: json['ProjectVersionArn'] as String?,
    status: (json['Status'] as String?)?.toProjectVersionStatus(),
    statusMessage: json['StatusMessage'] as String?,
    testingDataResult: json['TestingDataResult'] != null
        ? TestingDataResult.fromJson(
            json['TestingDataResult'] as Map<String, dynamic>)
        : null,
    trainingDataResult: json['TrainingDataResult'] != null
        ? TrainingDataResult.fromJson(
            json['TrainingDataResult'] as Map<String, dynamic>)
        : null,
    trainingEndTimestamp: timeStampFromJson(json['TrainingEndTimestamp']),
  );
}