Get information from deserialized object

Hi,

I’m using Azure function and run this code below to get mfa status but since Microsoft changed to powershell 7 it is converted to deserialized object and I don’t see a way to pull that information now. Any way or ideas how to do that? Thanks

((get-msoluser -tenantid 'tenantid' -userprincipalname 'email').StrongAuthenticationRequirements).state