Move.fromJson constructor
Implementation
factory Move.fromJson(Map<String, dynamic> json) => Move(
meta: json["_meta"],
key: json["key"],
name: json["name"],
description: json["description"],
explanation: json["explanation"],
dice: List<Dice>.from(json["dice"].map((x) => Dice.fromJson(x))),
classKeys: List<EntityReference>.from(
json["classKeys"].map((x) => EntityReference.fromJson(x))),
tags: List<Tag>.from(json["tags"].map((x) => Tag.fromJson(x))),
category: MoveCategory.values
.firstWhere((element) => element.name == json["category"]),
);