toJson method
Implementation
Map<String, dynamic> toJson() {
final supportedTrainingInstanceTypes = this.supportedTrainingInstanceTypes;
final trainingChannels = this.trainingChannels;
final trainingImage = this.trainingImage;
final metricDefinitions = this.metricDefinitions;
final supportedHyperParameters = this.supportedHyperParameters;
final supportedTuningJobObjectiveMetrics =
this.supportedTuningJobObjectiveMetrics;
final supportsDistributedTraining = this.supportsDistributedTraining;
final trainingImageDigest = this.trainingImageDigest;
return {
'SupportedTrainingInstanceTypes':
supportedTrainingInstanceTypes.map((e) => e.toValue()).toList(),
'TrainingChannels': trainingChannels,
'TrainingImage': trainingImage,
if (metricDefinitions != null) 'MetricDefinitions': metricDefinitions,
if (supportedHyperParameters != null)
'SupportedHyperParameters': supportedHyperParameters,
if (supportedTuningJobObjectiveMetrics != null)
'SupportedTuningJobObjectiveMetrics':
supportedTuningJobObjectiveMetrics,
if (supportsDistributedTraining != null)
'SupportsDistributedTraining': supportsDistributedTraining,
if (trainingImageDigest != null)
'TrainingImageDigest': trainingImageDigest,
};
}