MetadataUses class
Constructors
-
MetadataUses.new({required MetadataUseMethod useMethod, required u64 remaining, required u64 total})
-
Make NFTs usable, meaning you can load it with a certain amount of "uses" and use it until it
has run out. You can learn more about using NFTs here.
const
-
MetadataUses.fromJson(Map<String, dynamic> json)
-
Creates an instance of
this
class from the constructor parameters defined in the json
object.
factory
Methods
-
borshSize()
→ int
-
Returns the serialized byte length of
this
instance.
inherited
-
borshSpace()
→ int
-
The serialized byte length required to store any instance of this class (i.e. max size).
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh()
→ Iterable<int>
-
Serializes
this
instance into a buffer.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serialises
this
class into a JSON object.
override
-
toString()
→ String
-
A string representation of this object.
inherited