throw new JsonParseException("PluginClass should be a JSON Object");
}
JsonObject jsonObj = json.getAsJsonObject();
String type = jsonObj.has("type") ? jsonObj.get("type").getAsString() : Plugin.DEFAULT_TYPE;
String name = getRequired(jsonObj, "name").getAsString();
<BUG>String description = getRequired(jsonObj, "description").getAsString();
String className = getRequired(jsonObj, "className").getAsString();</BUG>
Map<String, PluginPropertyField> properties = jsonObj.has("properties")
? context.<Map<String, PluginPropertyField>>deserialize(jsonObj.get("properties"), PROPERTIES_TYPE)
: ImmutableMap.<String, PluginPropertyField>of();

throw new JsonParseException("PluginClass should be a JSON Object");
}
JsonObject jsonObj = json.getAsJsonObject();
String type = jsonObj.has("type") ? jsonObj.get("type").getAsString() : Plugin.DEFAULT_TYPE;
String name = getRequired(jsonObj, "name").getAsString();
String description = jsonObj.has("description") ? jsonObj.get("description").getAsString() : "";
String className = getRequired(jsonObj, "className").getAsString();
Map<String, PluginPropertyField> properties = jsonObj.has("properties")
? context.<Map<String, PluginPropertyField>>deserialize(jsonObj.get("properties"), PROPERTIES_TYPE)
: ImmutableMap.<String, PluginPropertyField>of();
