Constitution.deserialize constructor
Constitution.deserialize(
- CborListValue<
CborObject> cbor
Implementation
factory Constitution.deserialize(CborListValue cbor) {
return Constitution(
anchor: Anchor.deserialize(cbor.elementAt<CborListValue>(0)),
scriptHash: cbor
.elementAt<CborBytesValue?>(1)
?.convertTo<ScriptHash, CborBytesValue>(
(e) => ScriptHash.deserialize(e)));
}