toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ContainerColor'] = this.containerColor;
data['Margin'] = this.margin;
data['Padding'] = this.padding;
data['QuestionFontSize'] = this.questionFontSize;
data['AnswerFontSize'] = this.answerFontSize;
data['wholeViewRadius'] = this.wholeViewRadius;
data['QuestionFontColor'] = this.questionFontColor;
data['AnswerFontColor'] = this.answerFontColor;
data['ArrowVisibility'] = this.arrowVisibility;
if (this.questionAnswer != null) {
data['QuestionAnswer'] =
this.questionAnswer!.map((v) => v.toJson()).toList();
}
return data;
}