WorkoutHarmonized class

Equivalent of Workout.Harmonized from HealthKitReporter https://cocoapods.org/pods/HealthKitReporter

Supports map representation.

Has a WorkoutHarmonized.fromJson constructor to create instances from JSON payload coming from iOS native code.

Constructors

WorkoutHarmonized(WorkoutActivityType type, num? totalEnergyBurned, String totalEnergyBurnedUnit, num? totalDistance, String totalDistanceUnit, num? totalSwimmingStrokeCount, String totalSwimmingStrokeCountUnit, num? totalFlightsClimbed, String totalFlightsClimbedUnit, Map<String, dynamic>? metadata)
const
WorkoutHarmonized.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

hashCode int
The hash code for this object.
no setterinherited
map Map<String, dynamic>
General map representation
no setter
metadata Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalDistance num?
final
totalDistanceUnit String
final
totalEnergyBurned num?
final
totalEnergyBurnedUnit String
final
totalFlightsClimbed num?
final
totalFlightsClimbedUnit String
final
totalSwimmingStrokeCount num?
final
totalSwimmingStrokeCountUnit String
final
type WorkoutActivityType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited