UserData class
- Annotations
-
- @freezed
Constructors
- UserData({@JsonKey(name: 'ID') String? id, @JsonKey(name: 'Username') String? userName, @JsonKey(name: 'TermsAccepted', defaultValue: false) bool? termsAccepted, @JsonKey(name: 'Active', defaultValue: false) bool? active, @JsonKey(name: 'Contacts') Contact? primaryContact, @JsonKey(name: 'Name') String? name})
-
factory
-
UserData.fromJson(Map<
String, dynamic> json) -
factory
- UserData.initial()
-
factory
Properties
- active → bool?
-
no setterinherited
-
copyWith
→ $UserDataCopyWith<
UserData> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
no setterinherited
- name → String?
-
no setterinherited
- primaryContact → Contact?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- termsAccepted → bool?
-
no setterinherited
- userName → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited