TokenDetails.erc721 constructor
Constructs a new ERC721 token instance.
Parameters:
symbol
– The symbol of the ERC721 token.name
– The name of the ERC721 token.decimals
– The number of decimals for the ERC721 token.address
– The address of the ERC721 token.amount
– The amount of the ERC721 token.
Implementation
@Implements<IToken>()
@FreezedUnionValue('ERC-721')
const factory TokenDetails.erc721({
required String symbol,
@JsonKey(
fromJson: nameFromJson,
)
required String name,
@JsonKey(
fromJson: decimalsFromJson,
)
required int decimals,
@JsonKey(
name: 'contractAddress',
fromJson: addressFromJson,
)
required String address,
@JsonKey(
name: 'balance',
)
required BigInt amount,
}) = ERC721;