Item.fromMap constructor
Implementation
Item.fromMap(String oldId, Map body) : super.fromMap(oldId, body) {
this.type = HitCategory.ITEM;
this.transactionId = body['tid'] ?? "";
this.name = body['in'] ?? "";
this.code = body['ic'] ?? "";
this.price = body['ip'];
this.quantity = body['iq'];
this.category = body['iv'];
}