Can there be nested toggle?

Can we have nested toggle which would function like select all or vice versa? It's similar to check box but it will be shown using toggle button.

But there is a problem in this if I've selected partial list of items how will I represent it? On/off State or color change which is neither on/off?

enter image description here