UserModel constructor

UserModel({
  1. String? id,
  2. String? emailAddress,
  3. required String phoneNumber,
  4. String? password,
  5. required String fullName,
  6. required DateTime createdAt,
  7. DateTime? updatedAt,
  8. bool isAdmin = false,
  9. bool newUser = true,
  10. String? xoraiaID,
  11. required String apiKey,
  12. String? token,
  13. DateTime? tokenExpirationDate,
  14. String? companyTypeId,
  15. String? description,
  16. String? address,
  17. String? city,
  18. Country? country,
  19. int availableCredit = 0,
  20. bool blocked = false,
  21. bool isVerified = false,
  22. String? codePromo,
})

Implementation

UserModel({
  this.id,
  this.emailAddress,
  required this.phoneNumber,
  this.password,
  required this.fullName,
  required this.createdAt,
  this.updatedAt,
  this.isAdmin = false,
  this.newUser = true,
  this.xoraiaID,
  required this.apiKey,
  this.token,
  this.tokenExpirationDate,
  this.companyTypeId,
  this.logo,
  this.description,
  this.address,
  this.city,
  this.country,
  this.availableCredit = 0,
  this.blocked = false,
  this.isVerified = false,
  this.codePromo,
});