VoteDelegation.deserialize constructor
VoteDelegation.deserialize(
- CborListValue<
CborObject> cbor
Implementation
factory VoteDelegation.deserialize(CborListValue cbor) {
CertificateType.deserialize(cbor.elementAt<CborIntValue>(0),
validate: CertificateType.voteDelegation);
return VoteDelegation(
stakeCredential:
Credential.deserialize(cbor.elementAt<CborListValue>(1)),
drep: DRep.deserialize(cbor.elementAt<CborListValue>(2)));
}