toMap method
Converts the UserModel to a map for Firestore storage.
Returns: A Map<String, dynamic> containing the user's data.
Implementation
Map<String, dynamic> toMap() {
return {
'uid': uid,
'email': email,
'fullName': fullName,
'userType': userType.name,
'phoneNumber': phoneNumber,
'address': address,
'farmName': farmName,
'farmLocation': farmLocation,
};
}