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("appsForMac", self.apps_for_mac)
        writer.write_object_value("appsForWindows", self.apps_for_windows)
        writer.write_enum_value("updateChannel", self.update_channel)

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