User constructor

User(
  1. {required int id,
  2. required String? email,
  3. required List<int> selectedCauseIds,
  4. required List<int> completedCampaignIds,
  5. required List<int> completedActionIds,
  6. required List<int> completedLearningResourceIds,
  7. String? fullName,
  8. DateTime? dateOfBirth,
  9. String? location,
  10. double? monthlyDonationLimit,
  11. bool? homeOwner,
  12. dynamic points,
  13. dynamic organisation}
)

Implementation

User({
  required this.id,
  required this.email,
  required this.selectedCauseIds,
  required this.completedCampaignIds,
  required this.completedActionIds,
  required this.completedLearningResourceIds,
  this.fullName,
  this.dateOfBirth,
  this.location,
  this.monthlyDonationLimit,
  this.homeOwner,
  points,
  organisation,
}) {
  _organisation = organisation;
}