toJson method

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

Converts this request to TDLib JSON, tagged with extra if given.

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) => {
  '@type': CONSTRUCTOR,
  'business_connection_id': businessConnectionId,
  'chat_id': chatId,
  'reply_to': replyTo?.toJson(),
  'disable_notification': disableNotification,
  'protect_content': protectContent,
  'effect_id': effectId.toString(),
  'input_message_contents': [
    for (final e in inputMessageContents) e.toJson(),
  ],
  '@extra': ?extra,
};