Assets.fromJson constructor

Assets.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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