Spell.fromJson constructor
Implementation
factory Spell.fromJson(Map<String, dynamic> json) => Spell(
meta: json["_meta"],
key: json["key"],
name: json["name"] ?? '',
description: json["description"] ?? '',
explanation: json["explanation"] ?? '',
level: json["level"] ?? '',
classKeys: List<EntityReference>.from(
json["classKeys"].map((x) => EntityReference.fromJson(x))),
tags: List<Tag>.from(json["tags"].map((x) => Tag.fromJson(x))),
dice: List<Dice>.from(json["dice"].map((x) => Dice.fromJson(x))),
);