QuickCborObject extension
An extension providing quick utility methods for handling CborObject instances.
- on
-
- CborObject
Methods
-
cast<
T> ([String? onError]) → T -
Available on CborObject, provided by the QuickCborObject extension
Casts the value of theCborObjectto the specified type, or throws aMessageExceptionif casting fails. -
castTo<
E, T> (E toe(T e)) → E -
Available on CborObject, provided by the QuickCborObject extension
Converts the value of theCborObjectto the specified typeEusing the provided functiontoe. -
getInteger(
) → BigInt -
Available on CborObject, provided by the QuickCborObject extension
Converts the value stored in theCborObjectto a BigInt. -
getValue<
T> () → T -
Available on CborObject, provided by the QuickCborObject extension
Retrieves the value stored in theCborObjectas the specified typeT. -
hasType<
T> () → bool -
Available on CborObject, provided by the QuickCborObject extension
Checks whether the value stored in theCborObjecthas the specified typeT.