Withdrawals.deserialize constructor

Withdrawals.deserialize(
  1. CborMapValue<CborObject, CborObject> cbor
)

Implementation

factory Withdrawals.deserialize(CborMapValue cbor) {
  return Withdrawals({
    for (final i in cbor.valueAsMap<CborObject, CborObject>().entries)
      ADAAddress.deserialize<ADARewardAddress>(i.key.as("Withdrawals")):
          i.value.as<CborNumeric>("Withdrawals").toBigInt()
  });
}