toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'data': data,
'button_text': buttonText,
};
}
Creates a json from the object
Map toJson() {
return {
'data': data,
'button_text': buttonText,
};
}