1. Import
This commit is contained in:
commit
cb4525a774
165 files changed
+14763
No files matched your search
@@ -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,
|
||||
};*/
|
||||
}
|
||||
Reference in new issue
Block a user