UserDetails class
Detailed information about a user or family member.
Contains personal details including nationality, relationship, passport information, and birth details.
Used within FamilyMember and Sponsor models.
Constructors
- UserDetails({required String nationality, required Relation relation, required String passportNumber, required DateTime dateOfBirth, required String birthCity})
-
Creates a new UserDetails instance.
const
-
UserDetails.fromJson(Map<
String, dynamic> json) -
Creates a UserDetails from a JSON map.
factory
Properties
- birthCity → String
-
City of birth
final
- dateOfBirth → DateTime
-
Date of birth
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nationality → String
-
The nationality (as a string)
final
- passportNumber → String
-
Passport number
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- relation → Relation
-
The relationship to the primary user
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
isRelationMatches(
List< Relation> relations) → bool - Checks if the user's relation matches any in the provided list.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited