updateStatus method
Update Status
Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.
Implementation
Future<models.Account> updateStatus() async {
const String path = '/account/status';
final Map<String, dynamic> params = {};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.patch,
path: path, params: params, headers: headers);
return models.Account.fromMap(res.data);
}