NativeCurrencyUsdData.fromJson constructor

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

Constructs an instance of NativeCurrencyUsdData from a JSON map.

The json parameter is a map containing the keys 'native_currency' and 'usd'.

Implementation

NativeCurrencyUsdData.fromJson(Map<String, dynamic> json)
    : this.nativeCurrency = Convert.toDouble(json['native_currency'], 0),
      this.usd = Convert.toDouble(json['usd'], 0) {}