QuestionStatics class abstract
- Inheritance
-
- Object
- TCICBaseModel
- QuestionStatics
- Annotations
-
- @freezed
Constructors
-
QuestionStatics({@JsonKey.new(name: 'question_id') @Default.new('') String questionId, @JsonKey.new(name: 'question_name') @Default.new('') String questionName, @JsonKey.new(name: 'question_content') @Default.new('') String questionContent, @JsonKey.new(name: 'option_number') @Default.new(0) int optionNumber, @JsonKey.new(name: 'correct_answer') @Default.new(0) int correctAnswer, @JsonKey.new(name: 'limit_time') @Default.new(0) int limitTime, @Default.new(0) int type, @JsonKey.new(name: 'start_time') @Default.new(0) int startTime, @JsonKey.new(name: 'end_time') @Default.new(0) int endTime, @Default.new(0) int state, @Default.new(0) int duration, @Default.new(0) int ttl, @Default.new(0) int total, @JsonKey.new(name: 'answer_count') @Default.new(0) int answerCount, @Default.new([]) List stats, @Default.new([]) List<
QuestionAnswer> answers}) -
factory
-
QuestionStatics.fromJson(Map<
String, dynamic> json) -
factory
Properties
- answerCount → int
-
no setterinherited
-
answers
→ List<
QuestionAnswer> -
no setterinherited
-
copyWith
→ $QuestionStaticsCopyWith<
QuestionStatics> -
Create a copy of QuestionStatics
with the given fields replaced by the non-null parameter values.
no setterinherited
- correctAnswer → int
-
no setterinherited
- duration → int
-
no setterinherited
- endTime → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- limitTime → int
-
no setterinherited
- optionNumber → int
-
no setterinherited
- questionContent → String
-
no setterinherited
- questionId → String
-
no setterinherited
- questionName → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → int
-
no setterinherited
- state → int
-
no setterinherited
- stats → List
-
no setterinherited
- total → int
-
no setterinherited
- ttl → int
-
no setterinherited
- type → int
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this QuestionStatics to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited