toJson method
Implementation
@override
Object toJson() => {
if (startTime case final startTime?) 'startTime': startTime.toJson(),
if (completeTime case final completeTime?)
'completeTime': completeTime.toJson(),
if (snapshots.isNotDefault)
'snapshots': [for (final i in snapshots) i.toJson()],
if (trainingData case final trainingData?)
'trainingData': trainingData.toJson(),
if (hyperparameters case final hyperparameters?)
'hyperparameters': hyperparameters.toJson(),
};