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