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 399a56d commit 061955f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/ashwith/flutter/FlutterElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public Map<String, Object> getRawMap() {
* @return Stringify map
*/
public String serialize(final Map<String, Object> rawMap) {
final JsonPrimitive localInstance = new JsonPrimitive(false);
final JsonPrimitive localInstance = new JsonPrimitive(String.valueOf(false));
Map<String, Object> tempMap = new HashMap<>();
rawMap.forEach(
(key, value) -> {
if (value instanceof String || value instanceof Integer) {
if (value instanceof String || value instanceof Integer || value instanceof Boolean) {
tempMap.put(key, new JsonPrimitive(String.valueOf(value)));
} else if (value instanceof JsonElement) {
tempMap.put(key, value);
Expand Down

0 comments on commit 061955f

Please sign in to comment.