UiAutomation - Get Attribute - aastate still is enabled even when it is off

This is my workflow:


I am trying to get the state of this button
image
However, when I run this workflow, the results of the aastate value is always “enabled”.
How can I get the state of this button of both when it is off or on? Thank you

In this scenario get class attribute.
Bellow are results from my POC.

“mdc-switch mdc-switch–selected mdc-switch–checked” is class when enable.
“mdc-switch mdc-switch–unselected” is class when disabled.