class ProductDao {
  int? id;
  int? categoryId;
  num? count;
  num? price;
  String? productName;
  String? categoryName;
  String? eanCode;
  int? article;
  String? excise;
  int? transactionId;


  Map<String, dynamic> toMap() {
    var map = <String, dynamic>{
      'id': id,
      'categoryId': categoryId,
      'count': count,
      'price': price,
      'productName': productName,
      'categoryName': categoryName,
      'eanCode': eanCode,
      'article': article,
      'excise': excise,
      'transactionId' : transactionId,
    };
    return map;
  }

  ProductDao();

  ProductDao.fromMap(Map<String, dynamic> map) {
    id = map['id'];
    categoryId = map['categoryId'];
    count = map['count'];
    price = map['price'];
    productName = map['productName'];
    categoryName = map['categoryName'];
    eanCode = map['eanCode'];
    article = map['article'];
    excise = map['excise'];
    transactionId = map['transactionId'];
  }

}