Committee.deserialize constructor
Committee.deserialize(
- CborListValue<
CborObject> cbor
Implementation
factory Committee.deserialize(CborListValue cbor) {
return Committee(
members: {
for (final i in cbor
.elementAt<CborMapValue>(0)
.valueAsMap<CborListValue, CborIntValue>()
.entries)
Credential.deserialize(i.key): i.value.toInt()
},
quorumQhreshold:
UnitInterval.deserialize(cbor.elementAt<CborTagValue>(1)));
}