Map rule action parameters on import

This commit is contained in:
M66B
2019-06-07 17:42:55 +02:00
parent d70517cdfe
commit 46ae47b5c9
3 changed files with 59 additions and 12 deletions

View File

@@ -101,7 +101,7 @@ public class EntityAnswer implements Serializable {
public static EntityAnswer fromJSON(JSONObject json) throws JSONException {
EntityAnswer answer = new EntityAnswer();
// id
answer.id = json.getLong("id");
answer.name = json.getString("name");
answer.hide = (json.has("hide") && json.getBoolean("hide"));
answer.text = json.getString("text");