ExchangeRates.fromJson constructor

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

Implementation

ExchangeRates.fromJson(Map<String, dynamic> json) {
  json = json['rates'];
  rates = [];
  for (String key in json.keys) {
    rates.add(ExchangeRate.fromJson(json[key]));
  }
}