ExchangeRate.fromJson constructor

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

Implementation

ExchangeRate.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  unit = json['unit'];
  value = StaticHelpers.checkDoubleN(json['value'], -1.0);
  type = json['type'];
}