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