AuthResponse class
DTO de respuesta del endpoint POST /auth/login.
Contiene el token JWT y los datos básicos del usuario autenticado necesarios para inicializar la sesión en la app.
Constructors
- AuthResponse({required String token, required String userId, required String email, required String name, required String role, String? serviceId})
-
AuthResponse.fromJson(Map<
String, dynamic> json) -
Crea una instancia a partir del JSON devuelto por el backend.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited