ExerciseSessionHarmonized class

Equivalent of ExerciseSession.Harmonized from HealthConnectReporter https://github.com/kvs-coder/HealthConnectReporter

The values of ExerciseSession.

Supports map representation.

Has a ExerciseSessionHarmonized.fromJson constructor to create instances from JSON payload coming from Android native code.

Mixed-in types

Constructors

ExerciseSessionHarmonized({required ExerciseType exerciseType, String? title, String? notes, List<ExerciseSessionSegment> segments = const [], List<ExerciseSessionLap> laps = const [], ExerciseSessionRoute? route, bool isRouteConsentRequired = false, String? plannedExerciseSessionId})
const
ExerciseSessionHarmonized.fromJson(Map<String, dynamic> json)
General constructor from JSON payload

Properties

exerciseType → ExerciseType
The type of exercise
final
hashCode → int
The hash code for this object.
no setterinherited
isRouteConsentRequired → bool
A route exists, but reading it needs the user's consent; set by Health Connect. false by default
final
laps → List<ExerciseSessionLap>
The laps, inside the session. Empty by default
final
map → Map<String, dynamic>
General map representation
no setteroverride
notes → String?
Notes on the session
final
plannedExerciseSessionId → String?
Id of the PlannedExerciseSession this session completes
final
route → ExerciseSessionRoute?
The route; null when there is none or reading it needs the user's consent
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → List<ExerciseSessionSegment>
The segments, inside the session and compatible with exerciseType. Empty by default
final
title → String?
The title of the session
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