toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['inapp_message'] = inappMessage;
data['title'] = title;
data['title_font_color'] = titleFontColor;
data['body'] = body;
data['body_font_color'] = bodyFontColor;
data['background_color'] = backgroundColor;
data['background_img'] = backgroundImg;
if (richContent != null) {
data['rich_content'] = richContent!.toJson();
}
data['btn_left_txt'] = btnLeftTxt;
data['btn_left_txt_color'] = btnLeftTxtColor;
data['btn_left_bg_color'] = btnLeftBgColor;
data['btn_left_action_type'] = btnLeftActionType;
data['btn_left_action_link'] = btnLeftActionLink;
data['btn_right_txt'] = btnRightTxt;
data['btn_right_txt_color'] = btnRightTxtColor;
data['btn_right_bg_color'] = btnRightBgColor;
data['btn_right_action-type'] = btnRightActionType;
data['btn_right_action_link'] = btnRightActionLink;
data['dot_color'] = dotColor;
return data;
}