toJson method

Map<String, dynamic> toJson()

Implementation

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