class ResourceHelper { int? id; String? name; String? description; bool? isSelected; ResourceHelper({this.id, this.name, this.description, this.isSelected}); ResourceHelper.fromJson(Map json) { id = json['id']; name = json['name']; description = json['description']; isSelected = json['isSelected']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; data['description'] = this.description; data['isSelected'] = this.isSelected; return data; } }