Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
qcm_entity.dart
Go to the documentation of this file.
1import 'package:equatable/equatable.dart';
2
3class QcmEntity extends Equatable {
4 final int? id;
5 final int? courseId;
6 final String? question;
7 final List<String>? options;
9 final String? explanation;
10
11 const QcmEntity({
12 this.id,
13 this.courseId,
14 this.question,
15 this.options,
16 this.correctAnswerIndex,
17 this.explanation,
18 });
19
20 @override
21 List<Object?> get props => [
22 id,
28 ];
29
30 factory QcmEntity.fromJson(Map<String, dynamic> json) {
31 return QcmEntity(
32 id: json['id'],
33 courseId: json['courseId'],
34 question: json['question'],
35 options: json['options'] != null
36 ? List<String>.from(json['options'])
37 : null,
38 correctAnswerIndex: json['correctAnswerIndex'],
39 explanation: json['explanation'],
40 );
41 }
42}
final String explanation
final int courseId
final String question
final int correctAnswerIndex
final List< String > options
const QcmEntity({ this.id, this.courseId, this.question, this.options, this.correctAnswerIndex, this.explanation, })
class CurrencyEntity id
abstract class UseCase< Type, Params > props