Currency.fromJson constructor
Implementation
Currency.fromJson(Map<String, dynamic> json) {
id = json['id'];
createdAt = json['createdAt'];
baseCurrency = json['baseCurrency'];
if (json['rates'] != null) {
rates = <Rates>[];
json['rates'].forEach((v) {
rates!.add(Rates.fromJson(v));
});
}
}