class PassDetailViewModel {
  final String displayPassId;
  final String cardType;
  final String validity;
  final String customerName;
  final String phone;
  final String email;
  final String city;
  final String attractionName;

  PassDetailViewModel({
    required this.displayPassId,
    required this.cardType,
    required this.validity,
    required this.customerName,
    required this.phone,
    required this.email,
    required this.city,
    required this.attractionName,
  });

  factory PassDetailViewModel.fromMap(Map<String, dynamic> data) {
    return PassDetailViewModel(
      displayPassId: data['passId'] ?? 'P214125125',
      cardType: data['cardType'] ?? 'Selective',
      validity: data['validity'] ?? 'Valid',
      customerName: data['customerName'] ?? 'Lila Heart',
      phone: data['phone'] ?? '(+971) 050 421 4456',
      email: data['email'] ?? 'ninarokz21@gmail.com',
      city: data['city'] ?? 'The Enchanted Garden',
      attractionName: data['attractionName'] ?? 'The Enchanted Garden',
    );
  }
}
