SPLTokenMetaDataField class

Represents a field in SPL token metadata.

Inheritance

Constructors

SPLTokenMetaDataField.customField({required String keyName, required String value})
Represents the 'custom' field in SPL token metadata.
factory
SPLTokenMetaDataField.fromJson(Map<String, dynamic> json)
factory
SPLTokenMetaDataField.name({required String name})
Represents the 'name' field in SPL token metadata.
factory
SPLTokenMetaDataField.symbol({required String symbol})
Represents the 'symbol' field in SPL token metadata.
factory
SPLTokenMetaDataField.uri({required String uri})
Represents the 'uri' field in SPL token metadata.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
instruction int
The instruction associated with the field.
final
key String
The value representing the field.
final
layout → StructLayout
The layout representing the structure of the object for serialization.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
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.
inherited

Operators

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

Static Properties

staticLayout ↔ StructLayout
getter/setter pair