PointsRulesModel.fromJson constructor

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

Implementation

PointsRulesModel.fromJson(Map<String, dynamic> json) {
  status = json['status'];
  mensagem = json['mensagem'];
  if (json['regras'] != null) {
    regras = <Regra>[];
    json['regras'].forEach((v) {
      regras!.add(Regra.fromJson(v));
    });
  }
}