(Object raw)
| 8 | public Double cost; |
| 9 | |
| 10 | @SuppressWarnings("unchecked") |
| 11 | public Precision(Object raw) { |
| 12 | Map<String, Object> data = TypeHelper.toMap(raw); |
| 13 | this.amount = TypeHelper.safeFloat(data, "amount"); |
| 14 | this.price = TypeHelper.safeFloat(data, "price"); |
| 15 | this.cost = TypeHelper.safeFloat(data, "cost"); |
| 16 | } |
| 17 | } |