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_int_value("coreBootTimeInMs", self.core_boot_time_in_ms)
        writer.write_int_value("coreLoginTimeInMs", self.core_login_time_in_ms)
        writer.write_str_value("deviceId", self.device_id)
        writer.write_int_value("featureUpdateBootTimeInMs", self.feature_update_boot_time_in_ms)
        writer.write_int_value("groupPolicyBootTimeInMs", self.group_policy_boot_time_in_ms)
        writer.write_int_value("groupPolicyLoginTimeInMs", self.group_policy_login_time_in_ms)
        writer.write_bool_value("isFeatureUpdate", self.is_feature_update)
        writer.write_bool_value("isFirstLogin", self.is_first_login)
        writer.write_str_value("operatingSystemVersion", self.operating_system_version)
        writer.write_int_value("responsiveDesktopTimeInMs", self.responsive_desktop_time_in_ms)
        writer.write_enum_value("restartCategory", self.restart_category)
        writer.write_str_value("restartFaultBucket", self.restart_fault_bucket)
        writer.write_str_value("restartStopCode", self.restart_stop_code)
        writer.write_datetime_value("startTime", self.start_time)
        writer.write_int_value("totalBootTimeInMs", self.total_boot_time_in_ms)
        writer.write_int_value("totalLoginTimeInMs", self.total_login_time_in_ms)

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