Update.deserialize constructor

Update.deserialize(
  1. CborListValue<CborObject> cbor
)

Implementation

factory Update.deserialize(CborListValue cbor) {
  return Update(
      epoch: cbor.elementAt<CborIntValue>(1).toInt(),
      proposedProtocolParameterUpdates:
          ProposedProtocolParameterUpdates.deserialize(cbor
              .elementAt<CborObject>(0)
              .asMap("ProposedProtocolParameterUpdates")));
}