DRepUpdate.deserialize constructor
DRepUpdate.deserialize(
- CborListValue<
CborObject> cbor
Implementation
factory DRepUpdate.deserialize(CborListValue cbor) {
CertificateType.deserialize(cbor.elementAt<CborIntValue>(0),
validate: CertificateType.dRepUpdate);
return DRepUpdate(
votingCredential:
Credential.deserialize(cbor.elementAt<CborListValue>(1)),
anchor: cbor
.elementAt<CborListValue?>(2)
?.convertTo<Anchor, CborListValue>((e) => Anchor.deserialize(e)));
}