AuthSession constructor
AuthSession({
- required String email,
Creates a new AuthSession instance for the given email.
This constructor initializes the model from an empty JSON payload and is typically used when preparing a new session instance before persistence.
Example:
final session = AuthSession(email: 'jane@example.com');
print(session.email); // jane@example.com
Implementation
AuthSession({required this.email}) : super.fromJson({});