toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "collectionUuid":collectionUuid,
    "contractAddress":contractAddress,
    "deployerAddress":deployerAddress,
    "transactionHash":transactionHash,
    "collectionStatus": collectionStatus.value,
    "updateTime":updateTime,
    "createTime":createTime,
    "name": name,
    "symbol": symbol,
    "baseUri": baseUri,
    "baseExtension": baseExtension,
    "isRevokable": isRevokable,
    "isSoulbound": isSoulbound,
    "royaltiesAddress": royaltiesAddress,
    "royaltiesFees": royaltiesFees,
    "drop": drop,
    "maxSupply": maxSupply,
    "description": description,
    "collectionType": collectionType1?.value,
    "chain": chain1?.value,
    "isAutoIncrement": isAutoIncrement ?? true,
    "dropPrice": dropPrice,
    "dropStart": dropStart,
    "dropReserve":dropReserve,
  };
}