toEntityState method
Implementation
EntityState toEntityState() {
switch (this) {
case 'ENABLED':
return EntityState.enabled;
case 'DISABLED':
return EntityState.disabled;
case 'DELETED':
return EntityState.deleted;
}
throw Exception('$this is not known in enum EntityState');
}