private int convertToInt(String in) {
    return !TextUtils.isEmpty(in) ? Integer.valueOf(in, 10) : 0;
  }
POJO that represents the job form (via databinding).
testapp/src/main/java/com/firebase/jobdispatcher/testapp/JobForm.java