import 'package:isar/isar.dart'; part 'short_poll_question.g.dart'; @embedded class ShortPollQuestion { late int questionId; late int shortPollId; late String text; /*@Ignore() late String imageName = "assets/radiobutton.png"; @Ignore() late bool selected = false;*/ ShortPollQuestion(); /*factory ShortPollQuestion.fromJson(Map json) { var shortPollQuestion = ShortPollQuestion(); shortPollQuestion.questionId = json['id']; shortPollQuestion.shortPollId = json["shortPollId"]; shortPollQuestion.text = json["text"]; return shortPollQuestion; } Map toJson() => { "id": questionId, "short_poll_id": shortPollId, "text": text, };*/ }