toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts an InputTextMessageContent object to a JSON object

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'message_text': messageText,
    'parse_mode': parseMode?.value,
    'entities': entities?.map((e) => e.toJson()).toList(),
    'link_preview_options': linkPreviewOptions?.toJson(),
  }..removeWhere(_nullFilter);
}