toJson method
Implementation
Map<String, dynamic> toJson() => {
"type": type,
"buttonText": buttonText,
"buttonFontSize": buttonFontSize,
"buttonFontWeight": buttonFontWeight,
"buttonTextColor": buttonTextColor,
"buttonPosition": buttonPosition,
"buttonColor": buttonColor,
"buttonLink": buttonLink,
"hasAdvancedOptions": hasAdvancedOptions,
"buttonWidth": buttonWidth,
"buttonAlignment": buttonAlignment,
"roundness": roundness,
"padding": padding?.toJson(),
"margin": margin?.toJson(),
"_id": id,
};