fromJsonString method
Parses character definitions from a JSON string.
jsonString
A JSON string containing character definitions.
Implementation
void fromJsonString(String jsonString) {
final dynamic jsonObject = jsonDecode(jsonString);
final List<dynamic> jsonList = jsonObject['templates'];
_definitions =
jsonList.map((json) => CharacterDefinition.fromJson(json)).toList();
}