Chromium Code Reviews| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AddContentOverlay.java |
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AddContentOverlay.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AddContentOverlay.java |
| index f80ab8797a64a66aaab5f036ae05d57726c05f98..eaf78086fcd49e990559495912efb2cf4ff737ef 100644 |
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AddContentOverlay.java |
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/AddContentOverlay.java |
| @@ -20,6 +20,9 @@ import java.util.Arrays; |
| import java.util.List; |
| import java.util.Map; |
| import com.google.dart.server.utilities.general.ObjectUtilities; |
| +import com.google.gson.JsonArray; |
| +import com.google.gson.JsonObject; |
| +import com.google.gson.JsonPrimitive; |
| import org.apache.commons.lang3.StringUtils; |
| /** |
| @@ -76,6 +79,20 @@ public class AddContentOverlay { |
| return type; |
| } |
| + public JsonObject toJson() { |
| + // Create a JsonObject |
|
Brian Wilkerson
2014/08/19 21:57:40
Personally, I don't find the generated comments to
jwren
2014/08/20 20:51:20
Done. All removed.
|
| + JsonObject jsonObject = new JsonObject(); |
| + |
| + // type |
| + jsonObject.addProperty("type", type); |
| + |
| + // content |
| + jsonObject.addProperty("content", content); |
| + |
| + // Return the JsonObject |
| + return jsonObject; |
| + } |
| + |
| @Override |
| public String toString() { |
| StringBuilder builder = new StringBuilder(); |