FitbitDeviceData class
FitbitDevicesData
is a class implementing the data model of the
user devices data.
- Implemented types
Constructors
- FitbitDeviceData({String? userID, String? batteryLevel, String? deviceId, String? deviceVersion, DateTime? lastSyncTime, String? type})
- Default FitbitDeviceData constructor.
-
FitbitDeviceData.fromJson({required Map<
String, dynamic> json}) -
Generates a FitbitDeviceData obtained from a json.
factory
Properties
- batteryLevel ↔ String?
-
The current battery level of the device.
getter/setter pair
- deviceId ↔ String?
-
The device id.
getter/setter pair
- deviceVersion ↔ String?
-
The version of the device.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastSyncTime ↔ DateTime?
-
The date when the device was synched the last time.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String?
-
The type of the device.
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