Rates.fromJson constructor

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

Implementation

factory Rates.fromJson(Map<String, dynamic> json) => Rates(
      eur: json['eur']?.toDouble(),
      usd: json['usd']?.toDouble(),
    );