toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"title": title,
"message": message,
"backgroundColorHex": backgroundColorHex,
"titleColorHex": titleColorHex,
"messageColorHex": messageColorHex,
"primaryButtonLabel": primaryButtonLabel,
"primaryButtonBackgroundColorHex": primaryButtonBackgroundColorHex,
"primaryButtonTextColorHex": primaryButtonTextColorHex,
"secondaryButtonLabel": secondaryButtonLabel,
"secondaryButtonBackgroundColorHex": secondaryButtonBackgroundColorHex,
"secondaryButtonTextColorHex": secondaryButtonTextColorHex,
"titleFontSize": titleFontSize,
"messageFontSize": messageFontSize,
"cornerRadius": cornerRadius,
};
}