PaywayTransactionItem.fromMap constructor

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

Implementation

factory PaywayTransactionItem.fromMap(Map<String, dynamic> map) {
  return PaywayTransactionItem(
    name: map['name'] ?? '',
    quantity: map['quantity']?.toDouble() ?? 0.0,
    price: map['price']?.toDouble() ?? 0.0,
  );
}