Reducao.fromJson constructor

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

Implementation

factory Reducao.fromJson(Map<String, dynamic> json) {
  return Reducao(
    codTributo: int.parse(json['codTributo'].toString()),
    valor: (num.parse(json['valor'].toString())).toDouble(),
    percentualReducao: (num.parse(
      json['percentualReducao'].toString(),
    )).toDouble(),
    identificador: int.parse(json['identificador'].toString()),
  );
}