toMode method
Implementation
Mode toMode() {
switch (this) {
case 'event':
return Mode.event;
}
throw Exception('$this is not known in enum Mode');
}
Mode toMode() {
switch (this) {
case 'event':
return Mode.event;
}
throw Exception('$this is not known in enum Mode');
}