InAppModel.fromJson constructor
InAppModel.fromJson(
- Map<String, dynamic> json
)
Implementation
InAppModel.fromJson(Map<String, dynamic> json) {
inappMessage = json['inapp_message'];
title = json['title'];
titleFontColor = json['title_font_color'];
body = json['body'];
bodyFontColor = json['body_font_color'];
backgroundColor = json['background_color'];
backgroundImg = json['background_image'];
bgImgActionType = json['bg_img_action_type'];
bgImgActionLink = json['bg_img_action_link'];
richContent = json['rich_content'] != null
? RichContent.fromJson(json['rich_content'])
: null;
btnLeftTxt = json['btn_left_txt'];
btnLeftTxtColor = json['btn_left_txt_color'];
btnLeftBgColor = json['btn_left_bg_color'];
btnLeftActionType = json['btn_left_action_type'];
btnLeftActionLink = json['btn_left_action_link'];
btnRightTxt = json['btn_right_txt'];
btnRightTxtColor = json['btn_right_txt_color'];
btnRightBgColor = json['btn_right_bg_color'];
btnRightActionType = json['btn_right_action-type'];
btnRightActionLink = json['btn_right_action_link'];
dotColor = json['dot_color'];
}