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.")
        super().serialize(writer)
        writer.write_object_value("account", self.account)
        writer.write_str_value("browser", self.browser)
        writer.write_str_value("deviceName", self.device_name)
        writer.write_str_value("operatingSystem", self.operating_system)
        writer.write_datetime_value("previousLogonDateTime", self.previous_logon_date_time)
        writer.write_str_value("protocol", self.protocol)
        writer.write_str_value("sessionId", self.session_id)
        writer.write_datetime_value("startUtcDateTime", self.start_utc_date_time)
        writer.write_str_value("userAgent", self.user_agent)

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