ActionButton.fromJson constructor
ActionButton.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ActionButton.fromJson(Map<String, dynamic> json) => ActionButton(
type: json["type"],
buttonText: json["buttonText"],
buttonFontSize: json["buttonFontSize"],
buttonFontWeight: json["buttonFontWeight"],
buttonTextColor: json["buttonTextColor"],
buttonPosition: json["buttonPosition"],
buttonColor: json["buttonColor"],
buttonLink: json["buttonLink"],
hasAdvancedOptions: json["hasAdvancedOptions"],
buttonWidth: json["buttonWidth"],
buttonAlignment: json["buttonAlignment"],
roundness: json["roundness"],
padding:
json["padding"] == null ? null : Margin.fromJson(json["padding"]),
margin: json["margin"] == null ? null : Margin.fromJson(json["margin"]),
id: json["_id"],
);