updateStatus method
Update User Status
Update the user status by its unique ID.
Implementation
Future<Response> updateStatus({@required String userId, @required String status}) {
final String path = '/users/{userId}/status'.replaceAll(RegExp('{userId}'), userId);
final Map<String, dynamic> params = {
'status': status,
};
final Map<String, String> headers = {
'content-type': 'application/json',
};
return client.call(HttpMethod.patch, path: path, params: params, headers: headers);
}