toType method
Implementation
Type toType() {
switch (this) {
case 'SYSTEM':
return Type.system;
case 'CUSTOM':
return Type.custom;
}
throw Exception('$this is not known in enum Type');
}
Type toType() {
switch (this) {
case 'SYSTEM':
return Type.system;
case 'CUSTOM':
return Type.custom;
}
throw Exception('$this is not known in enum Type');
}