toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"photo": photo?.toJson(),
"is_blocked": isBlocked,
"can_be_called": canBeCalled,
"supports_video_calls": supportsVideoCalls,
"has_private_calls": hasPrivateCalls,
"has_private_forwards": hasPrivateForwards,
"need_phone_number_privacy_exception": needPhoneNumberPrivacyException,
"bio": bio,
"share_text": shareText,
"description": description,
"group_in_common_count": groupInCommonCount,
"commands": commands.map((i) => i.toJson()).toList(),
};
}