EmiList.fromJson constructor

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

Implementation

factory EmiList.fromJson(Map<String, dynamic> json) => EmiList(
      bankName: json["bank_name"] == null ? null : json["bank_name"],
      bankCode: json["bank_code"] == null ? null : json["bank_code"],
      rates: json["rates"] == null
          ? null
          : List<Rate>.from(json["rates"].map((x) => Rate.fromJson(x))),
    );