QuickCborObject extension

An extension providing quick utility methods for handling CborObject instances.

on
  • CborObject

Methods

cast<T>([String? onError]) → T
Casts the value of the CborObject to the specified type, or throws a MessageException if casting fails.
getInteger() BigInt
Converts the value stored in the CborObject to a BigInt.
getValue<T>() → T
Retrieves the value stored in the CborObject as the specified type T.
hasType<T>() bool
Checks whether the value stored in the CborObject has the specified type T.
to<E, T>(E toe(T e)) → E
Converts the value of the CborObject to the specified type E using the provided function toe.