Retrieving SAML Identity Provider metadata.xml Using Okta SDK (.NET)

I came through a scenario where I needed to fetch the SAML Identity Provider metadata.xml using the Okta SDK. IOktaClient contains a method for IdentityProvider operations but I could not locate a way to directly retrieve the metadata.xml document itself.

Although the SDK offers the metadata.xml URL, we require the metadata document for further processing. Has anyone encountered a similar situation or found a workaround to fetch the SAML IdentityProvider metadata.xml via Okta SDK?

Thank you!