Skip to content

Commit

Permalink
Use GsonHelper to get add-parameter from json
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Mar 23, 2023
1 parent 0a45b04 commit e6ac622
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public JsonElement serialize() {
object.add("exclude", object.getAsJsonArray(type.getName()));
}
}
object.addProperty("add", object.getAsBoolean());
object.addProperty("add", GsonHelper.getAsBoolean(object, "add", false));
return object;
}
}
Expand Down

0 comments on commit e6ac622

Please sign in to comment.