+ /**
+ * creates proper Input for given inputType and defaultValue.
+ * <p>
+ * Default input type: "string".
+ *
+ * @param inputType Input type, supported: "boolean", "integer", "number"
+ * @param defaultValue Default value of Type
+ * @return
+ */
+ public Map<String, Object> createInputByType(String inputType, Object defaultValue) {
+ switch (inputType) {
+ case "boolean":
+ return createBooleanInput(defaultValue);
+ case "integer":
+ case "number":
+ return createIntegerInput(defaultValue);
+ default:
+ return createStringInput(defaultValue);
+ }
+ }
+
+