DRepDeregistration.deserialize constructor

DRepDeregistration.deserialize(
  1. CborListValue<CborObject> cbor
)

Implementation

factory DRepDeregistration.deserialize(CborListValue cbor) {
  CertificateType.deserialize(cbor.elementAt<CborIntValue>(0),
      validate: CertificateType.dRepDeregistration);
  return DRepDeregistration(
      votingCredential:
          Credential.deserialize(cbor.elementAt<CborListValue>(1)),
      coin: cbor.elementAsInteger(2));
}