class TopUpTariff {
  final int id;
  final int points;
  final double price;
  final double? discountPercent;

  TopUpTariff({
    required this.id,
    required this.points,
    required this.price,
    this.discountPercent,
  });

  double get finalPrice => discountPercent != null
      ? price * (1 - discountPercent! / 100)
      : price;
}
