Collectible constructor
Collectible({})
Creates a new Collectible
instance with the given properties.
Parameters:
description
: An optional description of the collectible.name
: An optional name for the collectible.imageURL
: An optional URL for an image representing the collectible.descriptorUri
: The descriptor URI for the collectible.created
: The date when the collectible was created in unix time.tokenId
: The unique identifier of the collectible.collection
: The collection to which the collectible belongs.owner
: The current owner of the collectible.creator
: The original creator of the collectible.metadata
: Optional metadata associated with the collectible.
Implementation
factory Collectible({
String? description,
String? name,
String? imageURL,
required String descriptorUri,
@JsonKey(name: 'created') required String createdAt,
required String tokenId,
required Collection collection,
required Address owner,
required Address creator,
}) = _Collectible;