populate method
Populates class properties via data object. @param data Data object.
Implementation
@override
populate(dynamic data) {
if (data != null) {
symbol = data["symbol"];
name = data["name"];
description = data["description"];
if (data["collectionType"] != null) {
collectionType = CollectionType.getByValue(data["collectionType"]);
}
maxSupply = data["maxSupply"];
baseUri = data["baseUri"];
baseExtension = data["baseExtension"];
isSoulbound = data["isSoulbound"];
isAutoIncrement = data["isAutoIncrement"];
isRevokable = data["isRevokable"];
drop = data["drop"];
dropPrice = data["dropPrice"];
dropStart = data["dropStart"];
dropReserve = data["dropReserve"];
royaltiesFees = data["royaltiesFees"];
royaltiesAddress = data["royaltiesAddress"];
if (data["collectionStatus"] != null) {
collectionStatus =
CollectionStatus.getByValue(data["collectionStatus"]);
}
contractAddress = data["contractAddress"];
transactionHash = data["transactionHash"];
deployerAddress = data["deployerAddress"];
if (data["chain"] != null) {
chain = EvmChain.getByValue(data["chain"]);
}
super.populate(data);
return this;
}
}