// ignore: file_names
class BookingModel {
  final String name;
  final String mobileNumber;
  final String email;
  final String message;
  final String serviceDate;
  final String serviceTime;
  final String serviceId;
  final String address;

  BookingModel({
    required this.name,
    required this.mobileNumber,
    required this.email,
    required this.message,
    required this.serviceDate,
    required this.serviceTime,
    required this.serviceId,
    required this.address,
  });

  factory BookingModel.fromJson(Map<String, dynamic> json) {
    return BookingModel(
      name: json['name'] ?? '',
      mobileNumber: json['mobile_number'] ?? '',
      email: json['email'] ?? '',
      message: json['message'] ?? '',
      serviceDate: json['service_date'] ?? '',
      serviceTime: json['service_time'] ?? '',
      serviceId: json['service_id'] ?? '',
      address: json['address'] ?? '',
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'name': name,
      'mobile_number': mobileNumber,
      'email': email,
      'message': message,
      'service_date': serviceDate,
      'service_time': serviceTime,
      'service_id': serviceId,
      'address': address,
    };
  }
}
