Assets.deserialize constructor
Assets.deserialize(
- CborMapValue cbor
Constructs an instance of Assets from a CBOR object.
Implementation
factory Assets.deserialize(CborMapValue cbor) {
final assets = {
for (final entry in cbor.value.entries)
AssetName.deserialize(entry.key):
cbor.getValue<CborObject>(entry.key).getInteger()
};
return Assets(assets);
}