Dynamically add destination fields to migration - importing data when fields on destination entity are not know
I think you could try to implement something similar https://www.webomelette.com/dynamic-migrations-using-templates-drupal-8. This is a good example of dynamic migration.