FitbitAccountData class

FitbitAccountData is a class implementing the data model of the user account data.

Implemented types

Constructors

FitbitAccountData({String? userID, int? age, bool? ambassador, bool? autoStrideEnabled, String? avatar, String? avatar150, String? avatar640, int? averageDailySteps, bool? challegesBeta, String? clockDisplayFormat, bool? corporate, bool? corporateAdmin, DateTime? dateOfBirth, String? displayName, String? displayNameSetting, bool? features, String? firstName, String? foodsLocale, String? fullName, String? gender, String? glucoseUnit, double? height, String? heightUnit, bool? isBugReportEnabled, bool? isChild, bool? isCoach, String? languageLocale, String? lastName, bool? legalTermsAcceptRequired, String? locale, DateTime? memberSince, bool? mfaEnabled, int? offsetFromUTCMillis, bool? sdkDeveloper, String? sleepTracking, String? startDayOfWeek, double? strideLengthRunning, String? strideLengthRunningType, double? strideLengthWalking, String? strideLengthWalkingType, String? swimUnit, String? timezone, String? waterUnit, String? waterUnitName, double? weight, String? weightUnit})
Default FitbitAccountData constructor.
FitbitAccountData.fromJson({required Map<String, dynamic> json})
Generates a FitbitAccountData obtained from a json.
factory

Properties

age int?
The user's age.
getter/setter pair
ambassador bool?
A flag the tells if the user is an ambassador.
getter/setter pair
autoStrideEnabled bool?
A flag the tells if the stride is automatically computed.
getter/setter pair
avatar String?
An url pointing to the user avatar image.
getter/setter pair
avatar150 String?
An url pointing to the user avatar image (150px).
getter/setter pair
avatar640 String?
An url pointing to the user avatar image (640px).
getter/setter pair
averageDailySteps int?
The user's average daily steps.
getter/setter pair
challegesBeta bool?
A flag the tells if the user is using the challeges (beta) feature.
getter/setter pair
clockDisplayFormat String?
The clock display format used by the user.
getter/setter pair
corporate bool?
A flag the tells if the user is a corporate user.
getter/setter pair
corporateAdmin bool?
A flag the tells if the user is a corporate user admin.
getter/setter pair
dateOfBirth DateTime?
The user birth date.
getter/setter pair
displayName String?
The user's name.
getter/setter pair
displayNameSetting String?
The user's name settings.
getter/setter pair
features bool?
The user's feature exercise goal.
getter/setter pair
firstName String?
The user's first name.
getter/setter pair
foodsLocale String?
The user's food locale.
getter/setter pair
fullName String?
The user's full name.
getter/setter pair
gender String?
The user's gender.
getter/setter pair
glucoseUnit String?
The glucose unit used by the user.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double?
The user's height.
getter/setter pair
heightUnit String?
The unit used by the user for the height.
getter/setter pair
isBugReportEnabled bool?
A flag the tells if the bug report is enabled.
getter/setter pair
isChild bool?
A flag the tells if the user is a child.
getter/setter pair
isCoach bool?
A flag the tells if the stride is a coach.
getter/setter pair
languageLocale String?
The user's language locale.
getter/setter pair
lastName String?
The user's last name.
getter/setter pair
legalTermsAcceptRequired bool?
A flag the tells if the legal terms acceptance is required.
getter/setter pair
locale String?
The user's locale.
getter/setter pair
memberSince DateTime?
The date when the user subscribed to Fitbit.
getter/setter pair
mfaEnabled bool?
A flag the tells if the mfa is enabled.
getter/setter pair
offsetFromUTCMillis int?
The user's offset from UTC.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkDeveloper bool?
A flag the tells if the user is an sdk developer.
getter/setter pair
sleepTracking String?
The user's sleep tracking.
getter/setter pair
startDayOfWeek String?
The user's start day of week.
getter/setter pair
strideLengthRunning double?
The user's stride length while running.
getter/setter pair
strideLengthRunningType String?
The user's stride length while running type.
getter/setter pair
strideLengthWalking double?
The user's stride length while walking.
getter/setter pair
strideLengthWalkingType String?
The user's stride length while walking type.
getter/setter pair
swimUnit String?
The unit used by the user while swimming.
getter/setter pair
timezone String?
The user's timezone.
getter/setter pair
userID String?
The Fitbit user id.
getter/setter pair
waterUnit String?
The unit used by the user while swimming.
getter/setter pair
waterUnitName String?
The unit used by the user to log water.
getter/setter pair
weight double?
The user's weight.
getter/setter pair
weightUnit String?
The unit used by the user for the weight.
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