Mint.deserialize constructor
Mint.deserialize(
- CborMapValue<
CborObject, CborObject> cbor
Deserializes a Mint instance from a CBOR map value.
Implementation
factory Mint.deserialize(CborMapValue<CborObject, CborObject> cbor) {
final List<MintInfo> mints = [];
for (final i in cbor.value.entries) {
mints.add(MintInfo(
policyID: PolicyID.deserialize(i.key.cast()),
assets: MintAssets.deserialize(i.value.cast())));
}
return Mint(mints);
}