ConsultarAnosCalendariosResponse.fromJson constructor

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

Implementation

factory ConsultarAnosCalendariosResponse.fromJson(Map<String, dynamic> json) {
  return ConsultarAnosCalendariosResponse(
    status: json['status'] as int,
    mensagens: (json['mensagens'] as List)
        .map((m) => MensagemNegocio.fromJson(m))
        .toList(),
    dados: json['dados'] != null
        ? (jsonDecode(json['dados']) as List)
              .map((d) => AnoCalendarioRegime.fromJson(d))
              .toList()
        : null,
  );
}