toSessionState method
Implementation
SessionState toSessionState() {
switch (this) {
case 'ACTIVE':
return SessionState.active;
case 'PENDING':
return SessionState.pending;
case 'EXPIRED':
return SessionState.expired;
}
throw Exception('$this is not known in enum SessionState');
}