1. Import

This commit is contained in:
Sven committed 2023-11-14 11:38:44 +01:00
commit cb4525a774
165 files changed
+14763

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
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<String, dynamic> json) {
var shortPollQuestion = ShortPollQuestion();
shortPollQuestion.questionId = json['id'];
shortPollQuestion.shortPollId = json["shortPollId"];
shortPollQuestion.text = json["text"];
return shortPollQuestion;
}
Map<String, dynamic> toJson() => {
"id": questionId,
"short_poll_id": shortPollId,
"text": text,
};*/
}