35 lines
737 B
Dart
35 lines
737 B
Dart
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,
|
|
};*/
|
|
} |