toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => {
      'workoutActivityType': _workoutActivityType.name,
      'totalEnergyBurned': _totalEnergyBurned,
      'totalEnergyBurnedUnit': _totalEnergyBurnedUnit?.name,
      'totalDistance': _totalDistance,
      'totalDistanceUnit': _totalDistanceUnit?.name,
    };