You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
823 B
Dart
33 lines
823 B
Dart
class FAQsModel {
|
|
int? id;
|
|
String? question;
|
|
String? answer;
|
|
int? sequenceNo;
|
|
bool? isActive;
|
|
int? channel;
|
|
bool? isCollapsed;
|
|
|
|
FAQsModel({this.id, this.question, this.answer, this.sequenceNo, this.isActive, this.channel, this.isCollapsed});
|
|
|
|
FAQsModel.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
question = json['question'];
|
|
answer = json['answer'];
|
|
sequenceNo = json['sequenceNo'];
|
|
isActive = json['isActive'];
|
|
channel = json['channel'];
|
|
isCollapsed = false;
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['id'] = id;
|
|
data['question'] = question;
|
|
data['answer'] = answer;
|
|
data['sequenceNo'] = sequenceNo;
|
|
data['isActive'] = isActive;
|
|
data['channel'] = channel;
|
|
return data;
|
|
}
|
|
}
|