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 the CborObject to the specified type, or throws a MessageException if casting fails.
castTo<E, T>(E toe(T e)) → E

Available on CborObject, provided by the QuickCborObject extension

Converts the value of the CborObject to the specified type E using the provided function toe.
getInteger() BigInt

Available on CborObject, provided by the QuickCborObject extension

Converts the value stored in the CborObject to a BigInt.
getValue<T>() → T

Available on CborObject, provided by the QuickCborObject extension

Retrieves the value stored in the CborObject as the specified type T.
hasType<T>() bool

Available on CborObject, provided by the QuickCborObject extension

Checks whether the value stored in the CborObject has the specified type T.