AppUser constructor
AppUser({
- String id = "",
- String name = "",
- String firstName = "",
- String lastName = "",
- int dateOfBirth = 0,
- String homeTown = "",
- String phoneNumber = "",
- String countryCode = "",
- String password = "",
- String email = "",
- String photoUrl = "",
- UserRole userRole = UserRole.subscriber,
- bool isVerified = false,
- bool isBanned = false,
- String androidNotificationToken = "",
- List<
AppProfile> profiles = const [], - List<
String> orderIds = const [], - String referralCode = "",
- String couponCode = "",
- int createdDate = 0,
- int lastTimeOn = 0,
- String fcmToken = "",
- String spotifyToken = "",
- String currentProfileId = "",
- String customerId = '',
- 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 = '',
});