toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'userFullInfo',
if (extra != null) '@extra': extra,
'personal_photo': personal_photo,
'photo': photo,
'public_photo': public_photo,
'block_list': block_list,
'can_be_called': can_be_called,
'supports_video_calls': supports_video_calls,
'has_private_calls': has_private_calls,
'has_private_forwards': has_private_forwards,
'has_restricted_voice_and_video_note_messages':
has_restricted_voice_and_video_note_messages,
'has_pinned_stories': has_pinned_stories,
'need_phone_number_privacy_exception':
need_phone_number_privacy_exception,
'bio': bio,
'premium_gift_options': premium_gift_options,
'group_in_common_count': group_in_common_count,
'bot_info': bot_info
};
}