UserNotificationModel.fromJson constructor

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

Implementation

UserNotificationModel.fromJson(Map<String, dynamic> json) {
  status = json['status'];
  total = json['total'];
  if (json['notificacoes'] != null) {
    notificacoes = <Notificacao>[];
    json['notificacoes'].forEach((v) {
      notificacoes.add(Notificacao.fromJson(v));
    });
  }
}