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.

25 lines
617B

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