Determining Virtual Machine vs Physical Machine in API / JSON

Hello everyone!

I’m working on a project where we are taking certain datapoints from the MAAS (v2.9.2) and applying it to Netbox, but the Netbox needs to know if a device is a Physical or Virtual Machine before it can create the device in its own database.

I can see in the MAAS GUI that Machines are listed in the Status area as Physical or Virtual, but as we are using code to pull the JSON data via the API, I have been unable to determine the factor that tells us this information when querying the API.

Can someone point me in the right direction in the API to determine if a machine is Virtual or Physical?

Thank you!