Apex
...
Types
Input & Output Types
Types.DocGenRequestInput
Represents input for Generate Document (Sync) method.
- String templateId
- Map<String,String> variables
- String documentType
This custom type has a constructor that takes in the parameters, in the same order as above. Definition is as follows -

For a more detailed example, view the example section in the Generate Document (Sync) article.