get abstract method

Future<CacheableResource<UserSessionModel>> get(
  1. int id, {
  2. DateTime? ifModifiedSince,
  3. String? eTag,
})

Gets a session with the given id. It accepts both ifModifiedSince and etag. If both are provided it will favour ifModifiedSince.

Returns a UserSessionModel as a CacheableResource.

Throws NotModifiedException if no change was detected.

Implementation

Future<CacheableResource<UserSessionModel>> get(int id, {DateTime? ifModifiedSince, String? eTag});