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