User constructor

const User({
  1. required int id,
  2. required String firstName,
  3. required String lastName,
  4. required String username,
  5. required String phoneNumber,
  6. required UserStatus status,
  7. ProfilePhoto? profilePhoto,
  8. required bool isContact,
  9. required bool isMutualContact,
  10. required bool isVerified,
  11. required bool isSupport,
  12. required String restrictionReason,
  13. required bool isScam,
  14. required bool isFake,
  15. required bool haveAccess,
  16. required UserType type,
  17. required String languageCode,
  18. dynamic extra,
  19. int? clientId,
})

Represents a user

Implementation

const User({
  required this.id,
  required this.firstName,
  required this.lastName,
  required this.username,
  required this.phoneNumber,
  required this.status,
  this.profilePhoto,
  required this.isContact,
  required this.isMutualContact,
  required this.isVerified,
  required this.isSupport,
  required this.restrictionReason,
  required this.isScam,
  required this.isFake,
  required this.haveAccess,
  required this.type,
  required this.languageCode,
  this.extra,
  this.clientId,
});