Characteristic.fromJson constructor
Characteristic.fromJson(
- Map<String, dynamic> json
)
Implementation
Characteristic.fromJson(Map<String, dynamic> json) {
id = json['id'];
geneModulo = json['gene_modulo'];
possibleValues = json['possible_values'].cast<int>();
highestStat = json['highest_stat'] != null
? NamedAPIResource.fromJson(json['highest_stat'])
: null;
if (json['descriptions'] != null) {
descriptions = <Descriptions>[];
json['descriptions'].forEach((v) {
descriptions!.add( Descriptions.fromJson(v));
});
}
}