Creates an instance of this type from a UR.
The UR to decode from
An instance of this type
OptionalfromCreates an instance of this type from a UR string.
This is a convenience method that parses the UR string and then calls fromUR().
The UR string to decode from (e.g., "ur:type/...")
An instance of this type
Returns the UR representation of the object.
Returns the UR string representation of the object.
A type that can be both encoded to and decoded from a UR.
This combines the UREncodable and URDecodable interfaces for types that support bidirectional UR conversion.
Example