def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        writer.write_object_value("automaticReplies", self.automatic_replies)
        writer.write_str_value("customMailTip", self.custom_mail_tip)
        writer.write_bool_value("deliveryRestricted", self.delivery_restricted)
        writer.write_object_value("emailAddress", self.email_address)
        writer.write_object_value("error", self.error)
        writer.write_int_value("externalMemberCount", self.external_member_count)
        writer.write_bool_value("isModerated", self.is_moderated)
        writer.write_bool_value("mailboxFull", self.mailbox_full)
        writer.write_int_value("maxMessageSize", self.max_message_size)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_enum_value("recipientScope", self.recipient_scope)
        writer.write_collection_of_object_values("recipientSuggestions", self.recipient_suggestions)
        writer.write_int_value("totalMemberCount", self.total_member_count)
        writer.write_additional_data_value(self.additional_data)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/mail_tips.py