MultiAsset.fromJson constructor

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

Implementation

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