PoolRegistration.deserialize constructor

PoolRegistration.deserialize(
  1. CborListValue cbor
)

Deserializes a PoolRegistration object from its CBOR representation.

Implementation

factory PoolRegistration.deserialize(CborListValue cbor) {
  CertificateType.deserialize(cbor.getIndex(0),
      validate: CertificateType.poolRegistration);
  return PoolRegistration(
      PoolParams.deserialize(cbor.sublist<CborObject>(1)));
}