toJson method
Implementation
@override
Object toJson() => {
if (startTime != null) 'startTime': startTime!.toJson(),
if (completeTime != null) 'completeTime': completeTime!.toJson(),
if (snapshots.isNotDefault) 'snapshots': encodeList(snapshots),
if (trainingData != null) 'trainingData': trainingData!.toJson(),
if (hyperparameters != null) 'hyperparameters': hyperparameters!.toJson(),
};