AssetContract.fromJson constructor

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

Implementation

AssetContract.fromJson(Map<String, dynamic> json) {
  address = json['address'] as String?;
  assetContractType = json['asset_contract_type'] as String?;
  createdDate = json['created_date'] as String?;
  name = json['name'] as String?;
  nftVersion = json['nft_version'];
  openseaVersion = json['opensea_version'];
  owner = json['owner'] as int?;
  schemaName = json['schema_name'] as String?;
  symbol = json['symbol'] as String?;
  totalSupply = json['total_supply'] as String?;
  description = json['description'] as String?;
  externalLink = json['external_link'];
  imageUrl = json['image_url'] as String?;
  defaultToFiat = json['default_to_fiat'] as bool?;
  devBuyerFeeBasisPoints = json['dev_buyer_fee_basis_points'] as int?;
  devSellerFeeBasisPoints = json['dev_seller_fee_basis_points'] as int?;
  onlyProxiedTransfers = json['only_proxied_transfers'] as bool?;
  openseaBuyerFeeBasisPoints = json['opensea_buyer_fee_basis_points'] as int?;
  openseaSellerFeeBasisPoints =
      json['opensea_seller_fee_basis_points'] as int?;
  buyerFeeBasisPoints = json['buyer_fee_basis_points'] as int?;
  sellerFeeBasisPoints = json['seller_fee_basis_points'] as int?;
  payoutAddress = json['payout_address'] as String?;
}