|
- class CommonData {
- String description;
- int id;
- String name;
- bool isSelected;
-
- CommonData({this.description, this.id, this.name, this.isSelected = false});
-
- CommonData.fromJson(Map<String, dynamic> json) {
- description = json['description'];
- id = json['id'];
- name = json['name'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['description'] = this.description;
- data['id'] = this.id;
- data['name'] = this.name;
- return data;
- }
- }
|