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

email String
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
role String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceId String?
final
token String
final
userId String
final

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