code: public static EnableStreamingTaskParameters deserialize(String taskParameters) {
          JaxbJsonSerializer<EnableStreamingTaskParameters> serializer =
              new JaxbJsonSerializer<>(EnableStreamingTaskParameters.class);
          try {
              EnableStreamingTaskParameters params =
                  serializer.deserialize(taskParameters);
              // Verify expected parameters
              if (null == params.getSpaceId() || params.getSpaceId().isEmpty()) {
                  throw new TaskDataException(
                      "Task parameter values may not be empty");
              }
              return params;
          } catch (IOException e) {
              throw new TaskDataException(
                  "Unable to parse task parameters due to: " + e.getMessage());
          }
      }
docs: Parses properties from task parameter string
  
  @param taskParameters - JSON formatted set of parameters