MetaData class
- Inheritance
-
- Object
- LayoutSerializable
- MetaData
Constructors
-
MetaData({required String name, required String symbol, required String uri, required int sellerFeeBasisPoints, required bool primarySaleHappened, required bool isMutable, required int? editionNonce, required TokenStandard? tokenStandard, required Collection? collection, required Uses? uses, required TokenProgramVersion tokenProgramVersion, required List<
Creator> creators}) -
const
-
MetaData.fromBuffer(List<
int> bytes) -
factory
-
MetaData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- collection → Collection?
-
final
-
creators
→ List<
Creator> -
final
- editionNonce → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMutable → bool
-
final
- layout → StructLayout
-
The layout representing the structure of the object for serialization.
no setteroverride
- name → String
-
final
- primarySaleHappened → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sellerFeeBasisPoints → int
-
final
- symbol → String
-
final
- tokenProgramVersion → TokenProgramVersion
-
final
- tokenStandard → TokenStandard?
-
final
- uri → String
-
final
- uses → Uses?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the object to a map.
override
-
toBytes(
) → List< int> -
Converts the object to bytes using Borsh serialization.
inherited
-
toHex(
) → String -
Converts the object to a hexadecimal string.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- staticLayout ↔ StructLayout
-
getter/setter pair