toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (elapsedDuration != null) 'elapsedDuration': elapsedDuration!,
if (metrics != null) 'metrics': metrics!,
if (stepCount != null) 'stepCount': stepCount!,
};