toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final resourceLimits = this.resourceLimits;
  final strategy = this.strategy;
  final hyperParameterTuningJobObjective =
      this.hyperParameterTuningJobObjective;
  final parameterRanges = this.parameterRanges;
  final trainingJobEarlyStoppingType = this.trainingJobEarlyStoppingType;
  final tuningJobCompletionCriteria = this.tuningJobCompletionCriteria;
  return {
    'ResourceLimits': resourceLimits,
    'Strategy': strategy.toValue(),
    if (hyperParameterTuningJobObjective != null)
      'HyperParameterTuningJobObjective': hyperParameterTuningJobObjective,
    if (parameterRanges != null) 'ParameterRanges': parameterRanges,
    if (trainingJobEarlyStoppingType != null)
      'TrainingJobEarlyStoppingType': trainingJobEarlyStoppingType.toValue(),
    if (tuningJobCompletionCriteria != null)
      'TuningJobCompletionCriteria': tuningJobCompletionCriteria,
  };
}