TermoAutorizacaoResponse class

Modelo para resposta da autenticação de procurador

Constructors

TermoAutorizacaoResponse({required int status, required List<MensagemNegocio> mensagens, String? dados, String? autenticarProcuradorToken, DateTime? dataExpiracao, bool isCacheValido = false})
TermoAutorizacaoResponse.fromHeaders(Map<String, String> headers)
Cria resposta a partir de headers HTTP (para cache)
factory
TermoAutorizacaoResponse.fromJson(Map<String, dynamic> json)
factory

Properties

autenticarProcuradorToken String?
final
codigoMensagem String
Obtém o código da mensagem principal
no setter
dados String?
final
dataExpiracao DateTime?
final
deveRenovarToken bool
Indica se deve renovar o token
no setter
hashCode int
The hash code for this object.
no setterinherited
isCacheValido bool
final
isTokenEmCache bool
Indica se o token está em cache (status 304)
no setter
isTokenExpirado bool
Indica se o token expirou
no setter
mensagemPrincipal String
Obtém a mensagem principal da resposta
no setter
mensagens List<MensagemNegocio>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
final
sucesso bool
Indica se a autenticação foi bem-sucedida
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited