toValue method
Implementation
String toValue() {
switch (this) {
case SessionState.active:
return 'ACTIVE';
case SessionState.pending:
return 'PENDING';
case SessionState.expired:
return 'EXPIRED';
}
}
String toValue() {
switch (this) {
case SessionState.active:
return 'ACTIVE';
case SessionState.pending:
return 'PENDING';
case SessionState.expired:
return 'EXPIRED';
}
}