fromValue static method
Constructs a PlutusDataType from its numeric value.
Implementation
static PlutusDataType fromValue(int? value) {
return values.firstWhere(
(element) => element.value == value,
orElse: () => throw MessageException(
"No PlutusDataType found matching the specified value",
details: {"value": value}),
);
}