toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'message_text': messageText,
    'parse_mode': parseMode,
    'entities': entities,
    'disable_web_page_preview': disableWebPagePreview,
  }..removeWhere((_, v) => v == null);
}