deleteUser method

Future<Response> deleteUser(
  1. {@required String userId}
)

Delete User

Delete a user by its unique ID.

Implementation

Future<Response> deleteUser({@required String userId}) {
   final String path = '/users/{userId}'.replaceAll(RegExp('{userId}'), userId);

   final Map<String, dynamic> params = {
   };

   final Map<String, String> headers = {
       'content-type': 'application/json',
   };

   return client.call(HttpMethod.delete, path: path, params: params, headers: headers);
    }