session property Null safety

Future<Map<String, dynamic>> session

The session data for the current GlpiClient Can be set using initSession with getFullSession parameter set to true or getFullSession If trying to get the session before calling initSession or getFullSession will throw an exception.

Implementation

Future<Map<String, dynamic>> get session async =>
    _session ?? await getFullSession();