getSessionById method
Gets a session by its unique id.
correlationId
(optional) transaction id to trace execution through call chain.sessionId
an id of session to be retrieved. Return Future that receives session or error.
Implementation
@override
Future<SessionV1?> getSessionById(
String? correlationId, String sessionId) async {
var result = await callCommand(
'get_session_by_id', correlationId, {'session_id': sessionId});
if (result == null) return null;
var item = SessionV1();
item.fromJson(json.decode(result));
return item;
}