FitbitActivityData class

FitbitActivityData is a class implementing the data model of the user's physical activity data.

Implemented types

Constructors

FitbitActivityData({String? userID, String? activityId, String? activityParentId, double? calories, String? description, double? distance, double? duration, DateTime? dateOfMonitoring, bool? isFavorite, String? logId, String? name, DateTime? startTime})
Default FitbitActivityData constructor.
FitbitActivityData.fromJson({required Map<String, dynamic> json})
Generates a FitbitActivityData obtained from a json.
factory

Properties

activityId String?
The activity type id.
getter/setter pair
activityParentId String?
The parent activity type id.
getter/setter pair
calories double?
The calories spent during the activity.
getter/setter pair
dateOfMonitoring DateTime?
The start date of the activity.
getter/setter pair
description String?
The description of the activity.
getter/setter pair
distance double?
The distance spanned during the activity.
getter/setter pair
duration double?
The duration of the activity.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isFavorite bool?
A flag that tells is the activity is the user's favorite.
getter/setter pair
logId String?
The univocal activity id.
getter/setter pair
name String?
The name of the activity.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime?
The start time of the activity.
getter/setter pair
userID String?
The user encoded id.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson<T extends FitbitData>() Map<String, dynamic>
Converts the value to a json.
override
toString() String
A string representation of this object.
override

Operators

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