ItemAbility.fromJson constructor
ItemAbility.fromJson(
- Map<String, dynamic> json
)
Implementation
ItemAbility.fromJson(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
if (json['descriptions'] != null) {
descriptions = <Descriptions>[];
json['descriptions'].forEach((v) {
descriptions!.add(new Descriptions.fromJson(v));
});
}
if (json['items'] != null) {
items = <NamedAPIResource>[];
json['items'].forEach((v) {
items!.add(new NamedAPIResource.fromJson(v));
});
}
if (json['names'] != null) {
names = <Names>[];
json['names'].forEach((v) {
names!.add(new Names.fromJson(v));
});
}
}