VotingProposal.deserialize constructor
VotingProposal.deserialize(
- CborListValue<
CborObject> cbor
Implementation
factory VotingProposal.deserialize(CborListValue cbor) {
return VotingProposal(
deposit: cbor.elementAsInteger(0),
rewardAddress: ADAAddress.deserialize(cbor.elementAt<CborBytesValue>(1)),
governanceAction:
GovernanceAction.deserialize(cbor.elementAt<CborListValue>(2)),
anchor: Anchor.deserialize(cbor.elementAt<CborListValue>(3)),
);
}