code: static public DisabledJob fromDeprecatedObject(Object obj) {
      if (obj == null) {
        return null;
      }
      if (obj instanceof String) {
        return new DisabledJob((String)obj);
      } else if (obj instanceof Map) {
        Map<String, Object> map = (Map<String, Object>)obj;
        String name = (String)map.get(SUBFLOW_ID_KEY);
        List<DisabledJob> childJobs = fromDeprecatedObjectList((List<Object>)map.get
            (SUBFLOW_CHILDREN_KEY));
        if (name != null && childJobs != null) {
          return new DisabledJob(name, childJobs);
        }
      }
      return null;
    }
docs: Create a DisabledJob from the original Object/JSON format, for
  {@link azkaban.sla.SlaOptionDeprecated}.
  
  @param obj the Object/JSON (in {@link azkaban.sla.SlaOptionDeprecated} format) value.
  @return the disabled job.