BasicInfo class

Basic Info Model. Contains basic information about the user.

Annotations
  • @JsonSerializable.new()

Constructors

BasicInfo({required int yearOfBirth, required Gender gender, required bool selfDeclaredHealthy})
Basic Info Model constructor
BasicInfo.fromJson(Map<String, dynamic> json)
Converts a Map to an BasicInfo instance.
factory

Properties

gender → Gender
Gender of the user
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selfDeclaredHealthy → bool
Indicates if the user feels they are generally healthy
final
yearOfBirth → int
Year of birth
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts an BasicInfo instance to a Map.
toString() → String
A string representation of this object.
inherited

Operators

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