PoolVotingThresholds.deserialize constructor
PoolVotingThresholds.deserialize(
- CborListValue<
CborObject< cborObject?> >
Implementation
factory PoolVotingThresholds.deserialize(CborListValue cbor) {
return PoolVotingThresholds(
motionNoConfidence: UnitInterval.deserialize(
cbor.elementAt<CborTagValue>(0),
),
committeeNormal: UnitInterval.deserialize(
cbor.elementAt<CborTagValue>(1),
),
committeeNoConfidence: UnitInterval.deserialize(
cbor.elementAt<CborTagValue>(2),
),
hardForkInitiation: UnitInterval.deserialize(
cbor.elementAt<CborTagValue>(3),
),
securityRelevantThreshold: UnitInterval.deserialize(
cbor.elementAt<CborTagValue>(4),
),
);
}