toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'message_id': messageId,
  'is_recommended': isRecommended,
  'can_be_reported': canBeReported,
  'content': content.toJson(),
  'sponsor': sponsor.toJson(),
  'title': title,
  'button_text': buttonText,
  'accent_color_id': accentColorId,
  'background_custom_emoji_id': backgroundCustomEmojiId.toString(),
  'additional_info': additionalInfo,
};