Token.fromJson constructor

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

Implementation

factory Token.fromJson(Map<String, dynamic> json) {
  return Token(
      USD: json['USD'] != null ? json['USD'].toDouble() : 1.0,
      decimals: json['decimals'],
      ethereumAddress: json['ethereumAddress'],
      ethereumBlockNum: json['ethereumBlockNum'],
      fiatUpdate: json['fiatUpdate'],
      id: json['id'],
      itemId: json['itemId'],
      name: json['name'],
      symbol: json['symbol']);
}