How to access the icon and style attribute of a button?

I have an manually configured icon in my app
<button id="AllComponentButton" margin="1" icon="arrow-right" style="map-widget" title="buttonText" config="b541b7b3-bfb2-4b21-b2bb-4121dd811089"/>.
I am trying to do automated test for this button. However, when I inspect the button with appium, I couldn’t find a attribute like style and icon. The attribute shown in the inspector is the same for every button not matter how I configure.
Does anyone know how to solve this?