setUser method

Future<void> setUser(
  1. Map<String, dynamic> userDetails
)

Implementation

Future<void> setUser(Map<String, dynamic> userDetails) async {
  try {
    final replacedUserDetails =
    replaceKeys(userDetails, _userMapping, _userRequiredCol);
    await _setUserRequest('$baseUrl/api/v1/user/update', replacedUserDetails);
  } catch (error) {
    print(error);
  }
}