UserResponse constructor

UserResponse({
  1. required bool banned,
  2. List<String> blockedUserIds = const [],
  3. required DateTime createdAt,
  4. Map<String, Object> custom = const {},
  5. DateTime? deactivatedAt,
  6. DateTime? deletedAt,
  7. required String id,
  8. String? image,
  9. required String language,
  10. DateTime? lastActive,
  11. String? name,
  12. required bool online,
  13. DateTime? revokeTokensIssuedBefore,
  14. required String role,
  15. List<String> teams = const [],
  16. required DateTime updatedAt,
})

Returns a new UserResponse instance.

Implementation

UserResponse({
  required this.banned,
  this.blockedUserIds = const [],
  required this.createdAt,
  this.custom = const {},
  this.deactivatedAt,
  this.deletedAt,
  required this.id,
  this.image,
  required this.language,
  this.lastActive,
  this.name,
  required this.online,
  this.revokeTokensIssuedBefore,
  required this.role,
  this.teams = const [],
  required this.updatedAt,
});