AppUser constructor

AppUser({
  1. String id = "",
  2. String name = "",
  3. String firstName = "",
  4. String lastName = "",
  5. int dateOfBirth = 0,
  6. String homeTown = "",
  7. String phoneNumber = "",
  8. String countryCode = "",
  9. String password = "",
  10. String email = "",
  11. String photoUrl = "",
  12. UserRole userRole = UserRole.subscriber,
  13. bool isVerified = false,
  14. bool isBanned = false,
  15. String androidNotificationToken = "",
  16. List<AppProfile> profiles = const [],
  17. List<String> orderIds = const [],
  18. String referralCode = "",
  19. String couponCode = "",
  20. int createdDate = 0,
  21. int lastTimeOn = 0,
  22. String fcmToken = "",
  23. String spotifyToken = "",
  24. String currentProfileId = "",
  25. String customerId = '',
  26. String subscriptionId = '',
})

If is not empty, user has minimum a basic plan

Implementation

String subscriptionId; ///If is not empty, user has minimum a basic plan

AppUser({
  this.id = "",
  this.name = "",
  this.firstName = "",
  this.lastName = "",
  this.dateOfBirth = 0,
  this.homeTown = "",
  this.phoneNumber = "",
  this.countryCode = "",
  this.password = "",
  this.email = "",
  this.photoUrl = "",
  this.userRole = UserRole.subscriber,
  this.isVerified = false,
  this.isBanned = false,
  this.androidNotificationToken = "",
  this.profiles = const [],
  this.orderIds = const [],
  this.referralCode = "",
  this.couponCode = "",
  this.createdDate = 0,
  this.lastTimeOn = 0,
  this.fcmToken = "",
  this.spotifyToken = "",
  this.currentProfileId = "",
  this.customerId = '',
  this.subscriptionId = '',
});