getCredentialsItemMapFromUser method
- required User user,
Returns a map containing credentials for API calls from a User object.
This method is similar to getCredentialsItemMap, but it extracts
the login identifier and hashed password from a User object.
user: TheUserobject containing the login identifier and hashed password.
Returns a Map<String, dynamic> with credentials for API calls.
Implementation
Map<String, dynamic> getCredentialsItemMapFromUser({required User user}) {
return getCredentialsItemMap(
userName: user.userName,
hashedPassword: user.hashedPassword!,
);
}