public static CreateSnapshotTaskParameters deserialize(String taskParameters) {
        JaxbJsonSerializer<CreateSnapshotTaskParameters> serializer =
            new JaxbJsonSerializer<>(CreateSnapshotTaskParameters.class);
        try {
            CreateSnapshotTaskParameters params =
                serializer.deserialize(taskParameters);
            // Verify expected parameters
            if (null == params.getSpaceId() || params.getSpaceId().isEmpty() ||
                null == params.getUserEmail() || params.getUserEmail().isEmpty()) {
                throw new SnapshotDataException("Task parameter values may not be empty");
            }
            return params;
        } catch (IOException e) {
            throw new SnapshotDataException(
                "Unable to parse task parameters due to: " + e.getMessage());
        }
    }
public static CreateSnapshotTaskParameters deserialize ( String taskParameters ) { JaxbJsonSerializer < CreateSnapshotTaskParameters > serializer = new JaxbJsonSerializer < > ( CreateSnapshotTaskParameters . class ) ; try { CreateSnapshotTaskParameters params = serializer . deserialize ( taskParameters ) ; if ( null == params . getSpaceId ( ) || params . getSpaceId ( ) . isEmpty ( ) || null == params . getUserEmail ( ) || params . getUserEmail ( ) . isEmpty ( ) ) { throw new SnapshotDataException ( "Task parameter values may not be empty" ) ; } return params ; } catch ( IOException e ) { throw new SnapshotDataException ( "Unable to parse task parameters due to: " + e . getMessage ( ) ) ; } }
Parses properties from task parameter string

@param taskParameters - JSON formatted set of parameters