toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "photo": this.photo == null ? null : this.photo.toJson(),
    "is_blocked": this.isBlocked,
    "can_be_called": this.canBeCalled,
    "supports_video_calls": this.supportsVideoCalls,
    "has_private_calls": this.hasPrivateCalls,
    "need_phone_number_privacy_exception":
        this.needPhoneNumberPrivacyException,
    "bio": this.bio,
    "share_text": this.shareText,
    "group_in_common_count": this.groupInCommonCount,
    "bot_info": this.botInfo == null ? null : this.botInfo.toJson(),
  };
}