toJson method
Implementation
@override
Object toJson() => {
if (tunedModel.isNotDefault) 'tunedModel': tunedModel,
if (totalSteps.isNotDefault) 'totalSteps': totalSteps,
if (completedSteps.isNotDefault) 'completedSteps': completedSteps,
if (completedPercent.isNotDefault)
'completedPercent': encodeDouble(completedPercent),
if (snapshots.isNotDefault)
'snapshots': [for (final i in snapshots) i.toJson()],
};