PlutusDataType class

Represents different types of Plutus data.

Mixed in types

Constructors

PlutusDataType.deserialize(CborIntValue cbor)
Constructs a PlutusDataType from its serialized form.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the data type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The numeric value representing the data type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List<int>
Serializes the object to CBOR bytes.
inherited
serializeHex() String
Serializes the object to hexadecimal string.
inherited
toCbor() → CborObject
Converts the object to a CBOR object.
override
toJson() String
Converts the object to a JSON representation.
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromName(String? name) PlutusDataType
Constructs a PlutusDataType from its numeric name.
fromValue(int? value) PlutusDataType
Constructs a PlutusDataType from its numeric value.

Constants

bytes → const PlutusDataType
Plutus data type representing bytes.
constrPlutusData → const PlutusDataType
Plutus data type representing constructed Plutus data.
integer → const PlutusDataType
Plutus data type representing an integer.
list → const PlutusDataType
Plutus data type representing a list.
map → const PlutusDataType
Plutus data type representing a map.
values → const List<PlutusDataType>
A list of all Plutus data types.