ProtocolVersion.deserialize constructor

ProtocolVersion.deserialize(
  1. CborListValue cbor
)

Implementation

factory ProtocolVersion.deserialize(CborListValue cbor) {
  return ProtocolVersion(
      major: cbor.getIndex<CborIntValue>(0).value,
      minor: cbor.getIndex<CborIntValue>(1).value);
}