ElginResponse.fromMap constructor
Implementation
factory ElginResponse.fromMap(Map<String, Object?> json) {
return ElginResponse(
funcao: json['funcao'] == null ? null : json['funcao'] as String,
mensagem: json['mensagem'] == null ? null : json['mensagem'] as String,
transaction: json['resultado'] == null
? null
: (json['resultado'].toString()).contains('{')
? ElginTransactionResponse.fromJson(json['resultado'] as String)
: null,
resultCode: json['resultCode'] == null
? null
: (json['resultCode'].toString()).contains('{')
? null
: json['resultado'] as int,
);
}