factory Assets.fromJson(Map<String, dynamic> json) { return Assets({ for (final i in json.entries) AssetName.fromHex(i.key): BigintUtils.parse(i.value) }); }