|
|
|
|
13
|
public class BackButton extends Button {
|
13
|
public class BackButton extends Button {
|
14
|
public static BackButton parse(JSONObject json) {
|
14
|
public static BackButton parse(JSONObject json) {
|
15
|
BackButton result = new BackButton();
|
15
|
BackButton result = new BackButton();
|
16
|
- if (json == null) return result;
|
|
|
|
|
16
|
+ if (json == null || json.toString().equals("{}")) return result;
|
17
|
|
17
|
|
18
|
result.hasValue = true;
|
18
|
result.hasValue = true;
|
19
|
result.visible = BoolParser.parse(json, "visible");
|
19
|
result.visible = BoolParser.parse(json, "visible");
|