Item.fromMap constructor

Item.fromMap(
  1. String oldId,
  2. Map body
)

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'];
}