User class

Annotations

Constructors

User({required int id, required String? email, required List<int> selectedCauseIds, required List<int> completedCampaignIds, required List<int> completedActionIds, required List<int> completedLearningResourceIds, String? fullName, DateTime? dateOfBirth, String? location, double? monthlyDonationLimit, bool? homeOwner, dynamic points, dynamic organisation})
User.fromJson(Map<String, dynamic> data)
factory

Properties

completedActionIds ↔ List<int>
read / write
completedCampaignIds ↔ List<int>
read / write
completedLearningResourceIds ↔ List<int>
read / write
dateOfBirth ↔ DateTime?
read / write
email ↔ String?
read / write
fullName ↔ String?
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
hasProfile → bool
read-only
homeOwner ↔ bool?
read / write
id ↔ int
read / write
isStagingUser → bool
read-only
location ↔ String?
read / write
monthlyDonationLimit ↔ double?
read / write
organisation → Organisation?
read-only
points ↔ int?
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
selectedCauseIds ↔ List<int>
read / write
setOrganisation ← Organisation?
write-only

Methods

getAttributes() → Map
getDateOfBirth() → DateTime?
getEmail() → String?
getLocation() → String?
getName() → String?
getPostAttributes() → Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAttribute(String k, dynamic v) → void
setDateOfBirth(DateTime? dob) → void
setEmail(String email) → void
setHomeOwner(bool homeOwner) → void
setLocation(dynamic location) → void
setMonthlyDonationLimit(double monthlyDonationLimit) → void
setName(String? name) → void
toString() → String
A string representation of this object.
inherited

Operators

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