As you see SAML module needs its own configuration =SAML objects.
You can make a JSON structure to import all the needed configuration from it, so you can generate logically (in a microflow) the needed SAML objects.
Seen the parse logic seems a lot of work , while setting up a SAML configuration is mostly a one time event, I think configuring it manually is overall more efficient.