PhysicalActivity class
This schema represents a single episode of physical activity, including the name of the activity, duration, distance, intensity and calories burned.
OMH version 1.2 See physical-activity
Constructors
- PhysicalActivity({required String activityName, LengthUnitValue? distance, String? reportedActivityIntensity, KcalUnitValue? caloriesBurned})
- Creates a PhysicalActivity. The activityName is required according to the OMH definition.
-
PhysicalActivity.fromJson(Map<
String, dynamic> json) -
factory
Properties
- activityName ↔ String
-
getter/setter pair
- caloriesBurned ↔ KcalUnitValue?
-
getter/setter pair
- descriptiveStatistic ↔ String?
-
getter/setter pairinherited
- distance ↔ LengthUnitValue?
-
getter/setter pair
- effectiveTimeFrame ↔ TimeFrame?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- reportedActivityIntensity ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userNotes ↔ String?
-
getter/setter pairinherited
Methods
-
getAdditionalProperties(
) → Map< String, Object> -
Gets the additional properties.
inherited
-
getAdditionalProperty(
String name) → Object? -
Gets an additional property.
inherited
-
getSchemaId(
) → SchemaId -
The schema this class corresponds to
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAdditionalProperty(
String path, Object value) → void -
Sets an additional property.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited