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