class VendorGetProfileModel {
  final int id;
  final String name;
  final String email;
  final String number;
  final String location;
  final String pincode;
  final String aadharcard;
  final String pancard;
  final String drivingLicence;
  final String passport;
  final String? profilePic1;
  final int status;
  final int userId;
  final String createdDate;
  final String? endDate;

  VendorGetProfileModel({
    required this.id,
    required this.name,
    required this.email,
    required this.number,
    required this.location,
    required this.pincode,
    required this.aadharcard,
    required this.pancard,
    required this.drivingLicence,
    required this.passport,
    this.profilePic1,
    required this.status,
    required this.userId,
    required this.createdDate,
    this.endDate,
  });

  factory VendorGetProfileModel.fromJson(Map<String, dynamic> json) {
    return VendorGetProfileModel(
      id: json['id'],
      name: json['name'],
      email: json['email'],
      number: json['number'],
      location: json['location'],
      pincode: json['pincode'],
      aadharcard: json['aadharcard'],
      pancard: json['pancard'],
      drivingLicence: json['driving_licence'],
      passport: json['passport'],
      profilePic1: json['profile_pic1'],
      status: json['status'],
      userId: json['user_id'],
      createdDate: json['created_date'],
      endDate: json['end_date'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'name': name,
      'email': email,
      'number': number,
      'location': location,
      'pincode': pincode,
      'aadharcard': aadharcard,
      'pancard': pancard,
      'driving_licence': drivingLicence,
      'passport': passport,
      'profile_pic1': profilePic1,
      'status': status,
      'user_id': userId,
      'created_date': createdDate,
      'end_date': endDate,
    };
  }
}
