code: private static FieldDefinition fillFieldDefinitionData(final JSONObject fieldDefinitionObject) throws JSONException {
          final FieldDefinition ret = new FieldDefinition();
          ret.setName(fieldDefinitionObject.getString(NAME));
          ret.setDescription(fieldDefinitionObject.optString(DESCRIPTION));
          ret.setType(fieldDefinitionObject.getString(TYPE));
          ret.setNullable(fieldDefinitionObject.optBoolean(NULLABLE));
          ret.setLength(fieldDefinitionObject.optInt(LENGTH));
          ret.setIsKey(fieldDefinitionObject.optBoolean(ISKEY));
          if (defaultKeyName.equals(ret.getName())) {
              ret.setIsKey(true);
          }
  
          return ret;
      }
docs: fillFieldDefinitionData.
  
  @param fieldDefinitionObject josn model
  @return {@link FieldDefinition}
  @throws JSONException JSONException