FrequentlyAskedQuestions.fromJson constructor

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

Implementation

FrequentlyAskedQuestions.fromJson(Map<String, dynamic> json) {
  containerColor = json['ContainerColor'];
  margin = json['Margin'];
  padding = json['Padding'];
  questionFontSize = json['QuestionFontSize'];
  answerFontSize = json['AnswerFontSize'];
  wholeViewRadius = json['wholeViewRadius'];
  questionFontColor = json['QuestionFontColor'];
  answerFontColor = json['AnswerFontColor'];
  arrowVisibility = json['ArrowVisibility'];
  if (json['QuestionAnswer'] != null) {
    questionAnswer = <QuestionAnswer>[];
    json['QuestionAnswer'].forEach((v) {
      questionAnswer!.add(new QuestionAnswer.fromJson(v));
    });
  }
}