toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'personal_photo': personalPhoto?.toJson(),
'photo': photo?.toJson(),
'public_photo': publicPhoto?.toJson(),
'block_list': blockList?.toJson(),
'can_be_called': canBeCalled,
'supports_video_calls': supportsVideoCalls,
'has_private_calls': hasPrivateCalls,
'has_private_forwards': hasPrivateForwards,
'has_restricted_voice_and_video_note_messages':
hasRestrictedVoiceAndVideoNoteMessages,
'has_pinned_stories': hasPinnedStories,
'need_phone_number_privacy_exception': needPhoneNumberPrivacyException,
'set_chat_background': setChatBackground,
'bio': bio?.toJson(),
'premium_gift_options': [
for (final e in premiumGiftOptions) e.toJson()
],
'group_in_common_count': groupInCommonCount,
'business_info': businessInfo?.toJson(),
'bot_info': botInfo?.toJson(),
};