class FAQsModel {
  int? id;
  String? question;
  String? answer;
  int? sequenceNo;
  bool? isActive;
  int? channel;
  bool? isCollapsed;
  String? questionN;
  String? answerN;

  FAQsModel({this.id, this.question, this.answer, this.sequenceNo, this.isActive, this.channel, this.isCollapsed,
    this.questionN, this.answerN, });

  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;
    questionN = json['questionN'];
    answerN = json['answerN'];
  }

  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;
    data['questionN'] = questionN;
    data['answerN'] = answerN;
    return data;
  }
}
