decodeDartOpaqueCommon function

Object decodeDartOpaqueCommon(
  1. dynamic raw,
  2. GeneralizedFrbRustBinding generalizedFrbRustBinding
)

This is only intended to be used by automatically generated code, instead of developers.

Implementation

Object decodeDartOpaqueCommon(
    dynamic raw, GeneralizedFrbRustBinding generalizedFrbRustBinding) {
  if (raw is BigInt) {
    raw = raw.toInt();
  }
  return generalizedFrbRustBinding.dartOpaqueRust2DartDecode(raw);
}