toJson method
Converts this UserModel instance to a JSON map.
Returns a map with keys: 'documentId', 'email', 'designation', and 'organizationId'.
Implementation
Map<String, dynamic> toJson() {
return {
'documentId': userId,
'email': email,
'designation': role,
'organizationId': organizationId,
};
}