toJson method

Map<String, dynamic> toJson()

Converts a WebAppData object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'data': data,
    'button_text': buttonText,
  };
}