toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['createdAt'] = createdAt;
data['baseCurrency'] = baseCurrency;
if (rates != null) {
data['rates'] = rates!.map((v) => v.toJson()).toList();
}
return data;
}