toJson method

Map<String, dynamic> toJson()

Converts this object to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'text': text,
    'text_parse_mode': textParseMode?.value,
    'text_entities': textEntities?.map((entity) => entity.toJson()).toList(),
  }..removeWhere(_nullFilter);
}