PlutusData class abstract
Abstract class representing Plutus data.
- Implemented types
- Mixed in types
- Implementers
Constructors
- PlutusData()
-
const
- PlutusData.deserialize(CborObject cbor)
-
Constructs a PlutusData instance from its serialized form.
factory
- PlutusData.fromAddress(ADAShellyAddress address)
-
Constructs a PlutusData instance from an address.
factory
-
PlutusData.fromCborBytes(List<
int> cborBytes) -
Constructs a PlutusData instance from CBOR bytes.
factory
-
PlutusData.fromJson(Map<
String, dynamic> json) -
Constructs a PlutusData instance from JSON.
factory
- PlutusData.fromJsonSchema({required dynamic json, required PlutusJsonSchema schema})
-
Constructs a PlutusData instance from JSON.
factory
- PlutusData.fromPointer(Pointer pointer)
-
Constructs a PlutusData instance from a pointer.
factory
- PlutusData.fromStakeCredential(StakeCred credential)
-
Constructs a PlutusData instance from a stake credential.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → PlutusDataType
-
The type of Plutus data.
final
Methods
-
compareTo(
PlutusData other) → int -
Compares this object to another object.
override
-
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.
inherited
-
toHash(
) → DataHash - Converts the Plutus data to its hash representation.
-
toJson(
) → dynamic -
Converts the Plutus data to JSON.
override
-
toJsonSchema(
{PlutusSchemaConfig config = const PlutusSchemaConfig(jsonSchema: PlutusJsonSchema.basicConversions)}) → dynamic -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited