toJson method
Returns the data fields of NotificationButton in JSON format.
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'text': text,
'textColorRgb': textColor?.toRgbString,
};
}
Returns the data fields of NotificationButton in JSON format.
Map<String, dynamic> toJson() {
return {
'id': id,
'text': text,
'textColorRgb': textColor?.toRgbString,
};
}