toJson method
Implementation
@override
Object toJson() => {
'decayCurveStoppingSpec': ?decayCurveStoppingSpec?.toJson(),
'medianAutomatedStoppingSpec': ?medianAutomatedStoppingSpec?.toJson(),
'convexStopConfig': ?convexStopConfig?.toJson(),
'convexAutomatedStoppingSpec': ?convexAutomatedStoppingSpec?.toJson(),
'metrics': [for (final i in metrics) i.toJson()],
'parameters': [for (final i in parameters) i.toJson()],
if (algorithm.isNotDefault) 'algorithm': algorithm.toJson(),
if (observationNoise.isNotDefault)
'observationNoise': observationNoise.toJson(),
if (measurementSelectionType.isNotDefault)
'measurementSelectionType': measurementSelectionType.toJson(),
'transferLearningConfig': ?transferLearningConfig?.toJson(),
'studyStoppingConfig': ?studyStoppingConfig?.toJson(),
};