toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final trainingInputMode = this.trainingInputMode;
  final algorithmName = this.algorithmName;
  final metricDefinitions = this.metricDefinitions;
  final trainingImage = this.trainingImage;
  return {
    'TrainingInputMode': trainingInputMode.toValue(),
    if (algorithmName != null) 'AlgorithmName': algorithmName,
    if (metricDefinitions != null) 'MetricDefinitions': metricDefinitions,
    if (trainingImage != null) 'TrainingImage': trainingImage,
  };
}