ExchangeShort.fromJson constructor

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

Constructs an ExchangeShort instance from a JSON map.

The json parameter is a map containing the exchange data.

Implementation

ExchangeShort.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.name = Convert.toStr(json['name'], '');