SimplesDetalhe.fromJson constructor

SimplesDetalhe.fromJson(
  1. Map<String, dynamic> json
)

Implementation

SimplesDetalhe.fromJson(Map<String, dynamic> json) {
  optante = json['optante'] == true;
  dataOpcao = json['data_opcao']?.toString();
  historico = json['historico'] is Map
      ? SimplesHistorico.fromJson(
          Map<String, dynamic>.from(json['historico'] as Map),
        )
      : null;
}