diff --git a/src/main/java/io/github/ashwith/flutter/FlutterElement.java b/src/main/java/io/github/ashwith/flutter/FlutterElement.java index c38668d..2d04323 100644 --- a/src/main/java/io/github/ashwith/flutter/FlutterElement.java +++ b/src/main/java/io/github/ashwith/flutter/FlutterElement.java @@ -51,6 +51,8 @@ public String serialize(final Map rawMap) { tempMap.put(key, new JsonPrimitive(String.valueOf(value))); } else if (value instanceof JsonElement) { tempMap.put(key, value); + } else if(value instanceof Map) { + tempMap.put(key, gson.toJson(value)); } else { tempMap.put(key, localInstance); }