Initializes a new instance of the CLTypeResult class.
The CLType of the Err value in the Result.
The CLType of the Ok value in the Result.
Converts the CLTypeResult instance to a JSON-compatible representation. The JSON object includes a "Result" key containing the JSON representations of the Ok and Err types.
A JSON object representing the Result type and its Ok and Err types.
Static
fromJSONCreates a CLTypeResult instance from a JSON representation. Parses JSON input to determine the Ok and Err types for the Result.
A new CLTypeResult instance with parsed Ok and Err types.
If the JSON structure is invalid.
The JSON representation of the CLTypeResult.
Generated using TypeDoc
Represents a Result type in the Casper type system. This class implements the CLType interface, allowing for Result types with defined Ok and Err types.