Dynamic structure blueprint

I’m writing a form builder plugin and to display the collected data of a form I need a dynamic structure. Here is an example to clarify what I mean:

A user creates a form with a first_name and a last_name field with the form builder plugin. Than this form can be used to collect data. The form builder plugin stores this data as entries in a structure field. To display this data in the panel I need to set the fields of the structure. But because the fields are created dynamically by the user I can’t write them in the blueprint directly. Is there a way to generate the fields for the structure dynamically? Something like this (where generateFields could be defined in the page controller):

form_entries:
  type: structure
  fields: {{ generateFields() }}

which would be resolved to the following the example above:

form_entries:
  type: structure
  fields:
    first_name:
      type: text
    last_name:
      type: text