FitbitSleepData class

FitbitSleepData is a class implementing the data model of the user sleep data.

Implemented types

Constructors

FitbitSleepData({String? userID, DateTime? dateOfSleep, DateTime? entryDateTime, String? level})
Default FitbitSleepData constructor.
FitbitSleepData.fromJson({required Map<String, dynamic> json})
Generates a FitbitSleepData obtained from a json.
factory

Properties

dateOfSleep DateTime?
The date of when the sleep session begun.
getter/setter pair
entryDateTime DateTime?
The date of the data entry.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level String?
The level of the sleep data.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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