toJson method
Implementation
@override
Object toJson() => {
if (checkpointId.isNotDefault) 'checkpointId': checkpointId,
if (epoch.isNotDefault) 'epoch': epoch.toString(),
if (step.isNotDefault) 'step': step.toString(),
if (endpoint.isNotDefault) 'endpoint': endpoint,
};