Design.fromJson constructor
Implementation
factory Design.fromJson(Map<String, dynamic> json) => Design(
bgColor: json["bgColor"],
bgOpacity: json["bgOpacity"],
toolTipPosition: json["toolTipPosition"],
toolTipArrow: json["toolTipArrow"],
spotlightPosition: json["spotlightPosition"],
spotlightArrow: json["spotlightArrow"],
spotlightX: json["spotlightX"],
spotlightY: json["spotlightY"],
arrowImageId: json["arrowImageId"],
coachColor: json["coachColor"],
coachmarkPosition: json["coachmarkPosition"],
coachRadius: json["coachRadius"],
pipPosition: json["pipPosition"],
hasBorder: json["hasBorder"],
borderColor: json["borderColor"],
borderWidth: json["borderWidth"],
hasAdvancedOptions: json["hasAdvancedOptions"],
roundness: json["roundness"],
padding:
json["padding"] == null ? null : Margin.fromJson(json["padding"]),
margin: json["margin"] == null ? null : Margin.fromJson(json["margin"]),
showCloseButton: json["showCloseButton"],
closeButtonColor: json["closeButtonColor"],
bgOverlay: json["bgOverlay"],
overlayColor: json["overlayColor"],
overlayOpacity: json["overlayOpacity"],
id: json["_id"],
);