TrainingResult.fromJson constructor

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

Implementation

factory TrainingResult.fromJson(Map<String, dynamic> json) {
  return TrainingResult(
    dataValidationMetrics: json['dataValidationMetrics'] != null
        ? DataValidationMetrics.fromJson(
            json['dataValidationMetrics'] as Map<String, dynamic>)
        : null,
    trainingMetrics: json['trainingMetrics'] != null
        ? TrainingMetrics.fromJson(
            json['trainingMetrics'] as Map<String, dynamic>)
        : null,
  );
}