CastFailedException<T>.deserialize constructor

CastFailedException<T>.deserialize({
  1. List<int>? bytes,
  2. CborObject<Object?>? object,
})

Implementation

factory CastFailedException.deserialize({
  List<int>? bytes,
  CborObject? object,
}) {
  final values = CborTagSerializable.decodeTaggedValue(
    identifier: BlockchainUtilsSerializationIdentifier.casting,
    cborBytes: bytes,
    cborObject: object,
  );
  return CastFailedException(
    message: values.rawValueAt(0),
    details: values.maybeRawMapAt<String, String?>(1),
  );
}