public void fromJSON(JSONObject object) {
if (object == null) {
return;
}
JSONValue uuid = object.get("_uuid");
if (uuid != null) {
if (uuid.isString() != null) {
this._uuid = uuid.isString().stringValue();
}
}
JSONValue updateSeq = object.get("_updateSeq");
if (updateSeq != null) {
if (updateSeq.isNumber() != null) {
this._updateSeq = (int) updateSeq.isNumber().doubleValue();
}
}
JSONValue name = object.get("name");
if (name != null) {
if (name.isString() != null) {
this.name = name.isString().stringValue();
}
}
JSONValue capacity = object.get("capacity");
if (capacity != null) {
if (capacity.isNumber() != null) {
this.capacity = (int) (capacity.isNumber().doubleValue());
}
}
JSONValue store = object.get("store");
if (store != null) {
if (store.isString() != null) {
this.store = store.isString().stringValue();
}
}
}