deleteSessionById method
Deleted a session by it's unique id.
correlation_id
(optional) transaction id to trace execution through call chain.sessionId
an id of the session to be deleted Return Future that receives deleted session Throws error.
Implementation
@override
Future<SessionV1?> deleteSessionById(
String? correlationId, String sessionId) async {
var result = await callCommand(
'delete_session_by_id', correlationId, {'session_id': sessionId});
if (result == null) return null;
var item = SessionV1();
item.fromJson(json.decode(result));
return item;
}