AptosGraphQLCollectionV2.fromJson constructor

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

Implementation

factory AptosGraphQLCollectionV2.fromJson(Map<String, dynamic> json) {
  return AptosGraphQLCollectionV2(
    uri: json['uri'],
    tokenStandard: json['token_standard'],
    collectionId: json['collection_id'],
    collectionName: json['collection_name'],
    creatorAddress: json['creator_address'],
    description: json['description'],
    totalMintedV2: json['total_minted_v2'],
    tableHandleV1: json['table_handle_v1'],
    mutableUri: json['mutable_uri'],
    mutableDescription: json['mutable_description'],
    maxSupply: json['max_supply'],
    currentSupply: json['current_supply'],
    lastTransactionTimestamp: json['last_transaction_timestamp'],
    lastTransactionVersion: json['last_transaction_version'],
    cdnAssetUris: json['cdn_asset_uris'] == null
        ? null
        : AptosGraphQLCollectionV2CdnAssetUris.fromJson(
            json['cdn_asset_uris']),
  );
}