sendUser method

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

Implementation

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