Skip to content

Commit

Permalink
Update FlutterElement.java
Browse files Browse the repository at this point in the history
  • Loading branch information
guulp authored Dec 22, 2023
1 parent f6999b5 commit 5a6ff37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/github/ashwith/flutter/FlutterElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public String serialize(final Map<String, Object> rawMap) {
tempMap.put(key, new JsonPrimitive(String.valueOf(value)));
} else if (value instanceof JsonElement) {
tempMap.put(key, value);
} else if(value instanceof Map<String, Object>) {
tempMap.put(key, gson.toJson(value));
} else {
tempMap.put(key, localInstance);
}
Expand Down

0 comments on commit 5a6ff37

Please sign in to comment.