PgmeiBaseResponse class
Modelo base de resposta para todos os serviços PGMEI
Representa a estrutura comum de resposta da API PGMEI
Constructors
-
PgmeiBaseResponse({required int status, required List<
Mensagem> mensagens, Map<String, dynamic> ? dados}) -
PgmeiBaseResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
dados
→ Map<
String, dynamic> ? -
Estrutura de dados de retorno (Map parseado)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mensagemErro → String?
-
Texto da primeira mensagem de erro (conveniência para exibição).
Retorna null se não houver mensagens.
no setter
-
mensagens
→ List<
Mensagem> -
Mensagem explicativa retornada no acionamento do serviço
É um array composto de Código e texto da mensagem
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
Status HTTP retornado no acionamento do serviço
final
- sucesso → bool
-
Indica se a operaçã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