Collectible class

A data class representing a collectible item in a collection.

The Collectible class represents a unique item or asset in a collection. Each collectible has an owner and creator, and can belong to a specific collection. Additional metadata can be associated with each collectible.

Annotations
  • @freezed

Constructors

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})
Creates a new Collectible instance with the given properties.
factory
Collectible.fromJson(Map<String, dynamic> json)
Creates a Collectible instance from a JSON object.
factory

Properties

collection Collection
no setterinherited
copyWith → $CollectibleCopyWith<Collectible>
no setterinherited
createdAt String
no setterinherited
creator Address
no setterinherited
description String?
no setterinherited
descriptorUri String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
image String?
no setter
imageURL String?
no setterinherited
name String?
no setterinherited
owner Address
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenId String
no setterinherited

Methods

decodeDescriptorUri() Map<String, dynamic>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited