Faq.fromJson constructor

Faq.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Faq.fromJson(Map<String, dynamic> json) {
  title = json['title'];
  description = json['description'];
  showInFaqPage = json['faqPage'];
  questions = (json['questions'] as List<dynamic>).map((q) => Question.fromJson(q)).toList();
}