mirrored_repositories/fic-mini-project/lib/domain
import 'dart:typed_data';

import 'package:equatable/equatable.dart';

import 'package:fic_mini_project/domain/entity/category.dart';

class Product extends Equatable {
  final int? id;
  final String name;
  final int price;
  final Category? category;
  final Uint8List? image;
  final int quantity;

  const Product({
    required this.id,
    required this.name,
    required this.price,
    required this.category,
    required this.image,
    this.quantity = 0,
  });

  const Product.cart({
    required this.id,
    required this.name,
    required this.price,
    required this.quantity,
    this.category,
    this.image,
  });

  @override
  List<Object?> get props => [
        id,
        name,
        price,
        category,
        image,
        quantity,
      ];
}
