getCurrentUser method
Returns details for the current user.
Permissions required: Permission to access Jira.
Implementation
Future<User> getCurrentUser({String? expand}) async {
return User.fromJson(await _client.send(
'get',
'rest/api/3/myself',
queryParameters: {
if (expand != null) 'expand': expand,
},
));
}