public static AppEngineDeployResult parse()

in appengine-plugins-core/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/serialization/AppEngineDeployResult.java [77:100]


  public static AppEngineDeployResult parse(String jsonString) throws JsonParseException {
    Preconditions.checkNotNull(jsonString);
    try {
      AppEngineDeployResult fromJson = new Gson().fromJson(jsonString, AppEngineDeployResult.class);
      if (fromJson == null) {
        throw new JsonParseException("Empty input: \"" + jsonString + "\"");
      }
      if (fromJson.versions == null) {
        throw new JsonParseException("Missing version");
      }
      for (Version version : fromJson.versions) {
        if (version.id == null) {
          throw new JsonParseException("Missing version ID");
        } else if (version.project == null) {
          throw new JsonParseException("Missing version project");
        } else if (version.service == null) {
          throw new JsonParseException("Missing version service");
        }
      }
      return fromJson;
    } catch (JsonSyntaxException ex) {
      throw new JsonParseException(ex);
    }
  }