You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
530B

  1. class CommonData {
  2. String description;
  3. int id;
  4. String name;
  5. bool isSelected;
  6. CommonData({this.description, this.id, this.name, this.isSelected = false});
  7. CommonData.fromJson(Map<String, dynamic> json) {
  8. description = json['description'];
  9. id = json['id'];
  10. name = json['name'];
  11. }
  12. Map<String, dynamic> toJson() {
  13. final Map<String, dynamic> data = new Map<String, dynamic>();
  14. data['description'] = this.description;
  15. data['id'] = this.id;
  16. data['name'] = this.name;
  17. return data;
  18. }
  19. }