if ("jira".equalsIgnoreCase(fieldTypeStr)) {
fieldType = FieldType.JIRA;
} else if ("custom".equalsIgnoreCase(fieldTypeStr)) {
fieldType = FieldType.CUSTOM;
} else {
throw new JSONException("[" + fieldTypeStr + "] does not represent a valid field type. Expected [jira] or [custom].");
}
final String field = JsonParseUtil.getNestedString(json, "field");
final String from = JsonParseUtil.getNullableString(json, "from");
final String fromString = JsonParseUtil.getNullableString(json, "fromString");
final String to = JsonParseUtil.getNullableString(json, "to");