User constructor

User({
  1. required String id,
  2. required String email,
  3. String? name,
  4. String? image,
  5. bool emailVerified = false,
  6. String? role,
  7. required DateTime createdAt,
  8. required DateTime updatedAt,
  9. Map<String, dynamic>? metadata,
})

Creates a new User instance.

All parameters are required except name, image, role, and metadata.

Implementation

User({
  required this.id,
  required this.email,
  this.name,
  this.image,
  this.emailVerified = false,
  this.role,
  required this.createdAt,
  required this.updatedAt,
  this.metadata,
});