toJson method
Converts the ReplyParameters
object to a JSON object.
Implementation
Map<String, dynamic> toJson() {
return {
'message_id': messageId,
'chat_id': chatId?.id,
'allow_sending_without_reply': allowSendingWithoutReply,
'quote': quote,
'quote_parse_mode': quoteParseMode,
'quote_entities': quoteEntities?.map((e) => e.toJson()).toList(),
'quote_position': quotePosition,
}..removeWhere(_nullFilter);
}