toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'personal_photo': personalPhoto?.toJson(),
      'photo': photo?.toJson(),
      'public_photo': publicPhoto?.toJson(),
      'community_id': communityId,
      '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_posted_to_profile_stories': hasPostedToProfileStories,
      'has_sponsored_messages_enabled': hasSponsoredMessagesEnabled,
      'need_phone_number_privacy_exception': needPhoneNumberPrivacyException,
      'set_chat_background': setChatBackground,
      'uses_unofficial_app': usesUnofficialApp,
      'bio': bio?.toJson(),
      'birthdate': birthdate?.toJson(),
      'personal_chat_id': personalChatId,
      'gift_count': giftCount,
      'group_in_common_count': groupInCommonCount,
      'incoming_paid_message_star_count': incomingPaidMessageStarCount,
      'outgoing_paid_message_star_count': outgoingPaidMessageStarCount,
      'gift_settings': giftSettings.toJson(),
      'bot_verification': botVerification?.toJson(),
      'main_profile_tab': mainProfileTab?.toJson(),
      'first_profile_audio': firstProfileAudio?.toJson(),
      'rating': rating?.toJson(),
      'pending_rating': pendingRating?.toJson(),
      'pending_rating_date': pendingRatingDate,
      'note': note?.toJson(),
      'ton_wallet_card': tonWalletCard?.toJson(),
      'share_theme': shareTheme?.toJson(),
      'business_info': businessInfo?.toJson(),
      'bot_info': botInfo?.toJson(),
      '@type': constructor,
    };