NftInfo.fromJson constructor

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

Constructs an instance of NftInfo from a JSON map.

The json parameter is a map containing the NFT collection data.

Implementation

NftInfo.fromJson(Map<String, dynamic> json)
    : this.id = Convert.toStr(json['id'], ''),
      this.name = Convert.toStr(json['name'], ''),
      this.contractAddress = Convert.toStrN(json['contract_address']),
      this.assetPlatformId = Convert.toStr(json['asset_platform_id'], ''),
      this.symbol = Convert.toStr(json['symbol'], '') {}