GetEvaluationOutput.fromJson constructor
GetEvaluationOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetEvaluationOutput.fromJson(Map<String, dynamic> json) {
return GetEvaluationOutput(
computeTime: json['ComputeTime'] as int?,
createdAt: timeStampFromJson(json['CreatedAt']),
createdByIamUser: json['CreatedByIamUser'] as String?,
evaluationDataSourceId: json['EvaluationDataSourceId'] as String?,
evaluationId: json['EvaluationId'] as String?,
finishedAt: timeStampFromJson(json['FinishedAt']),
inputDataLocationS3: json['InputDataLocationS3'] as String?,
lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']),
logUri: json['LogUri'] as String?,
mLModelId: json['MLModelId'] as String?,
message: json['Message'] as String?,
name: json['Name'] as String?,
performanceMetrics: json['PerformanceMetrics'] != null
? PerformanceMetrics.fromJson(
json['PerformanceMetrics'] as Map<String, dynamic>)
: null,
startedAt: timeStampFromJson(json['StartedAt']),
status: (json['Status'] as String?)?.toEntityStatus(),
);
}