listSessions method
List sessions
Get the list of active sessions across different devices for the currently logged in user.
Implementation
Future<models.SessionList> listSessions() async {
const String apiPath = '/account/sessions';
final Map<String, dynamic> apiParams = {};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.SessionList.fromMap(res.data);
}