39 lines
810 B
Dart
39 lines
810 B
Dart
class VendorRegisterModel {
|
|
String name;
|
|
String number;
|
|
String email;
|
|
String? location;
|
|
String? pincode;
|
|
String? aadharCard;
|
|
String? panCard;
|
|
String? drivingLicense;
|
|
String? passport;
|
|
String userId;
|
|
|
|
VendorRegisterModel({
|
|
required this.name,
|
|
required this.number,
|
|
required this.email,
|
|
this.location,
|
|
this.pincode,
|
|
this.aadharCard,
|
|
this.panCard,
|
|
this.drivingLicense,
|
|
this.passport,
|
|
this.userId = '',
|
|
});
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'name': name,
|
|
'number': number,
|
|
'email': email,
|
|
'location': location,
|
|
'pincode': pincode,
|
|
'aadhar_card': aadharCard,
|
|
'pan_card': panCard,
|
|
'driving_license': drivingLicense,
|
|
'passport': passport,
|
|
'user_id': userId,
|
|
};
|
|
}
|