AffectingMoves.fromJson constructor
Implementation
AffectingMoves.fromJson(Map<String, dynamic> json) {
if (json['increase'] != null) {
increase = <NamedAPIResource>[];
json['increase'].forEach((v) {
v = v['move'];
increase!.add(new NamedAPIResource.fromJson(v));
});
}
if (json['decrease'] != null) {
decrease = <NamedAPIResource>[];
json['decrease'].forEach((v) {
v = v['move'];
decrease!.add(new NamedAPIResource.fromJson(v));
});
}
}