ABATransactionItem.fromMap constructor

ABATransactionItem.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ABATransactionItem.fromMap(Map<String, dynamic> map) {
  return ABATransactionItem(
    name: map["name"],
    quantity: double.tryParse("${map["quantity"]}"),
    price: double.tryParse("${map["price"]}"),
  );
}