Webform custom composite
Someone very kindly posted an example https://www.drupal.org/node/2883734.
Module creator also suggested here https://www.drupal.org/node/2824714 that documentation is being updated.