getSession method
Get Session
Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.
Implementation
Future<models.Session> getSession({required String sessionId}) async {
final String path =
'/account/sessions/{sessionId}'.replaceAll('{sessionId}', sessionId);
final Map<String, dynamic> params = {};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: path, params: params, headers: headers);
return models.Session.fromMap(res.data);
}