toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final inputDataConfig = this.inputDataConfig;
  final outputDataConfig = this.outputDataConfig;
  final resourceConfig = this.resourceConfig;
  final stoppingCondition = this.stoppingCondition;
  final trainingInputMode = this.trainingInputMode;
  final hyperParameters = this.hyperParameters;
  return {
    'InputDataConfig': inputDataConfig,
    'OutputDataConfig': outputDataConfig,
    'ResourceConfig': resourceConfig,
    'StoppingCondition': stoppingCondition,
    'TrainingInputMode': trainingInputMode.toValue(),
    if (hyperParameters != null) 'HyperParameters': hyperParameters,
  };
}