package org.ripple.power.txns.data; import org.json.JSONObject; public class OffersResponse { public int id; public OffersResult result = new OffersResult(); public String status; public String type; public void from(JSONObject obj) { if (obj != null) { this.id = obj.optInt("id"); this.status = obj.optString("status"); this.type = obj.optString("type"); this.result.from(obj.optJSONObject("result")); } } }