toDeviceCgroupPermission method

DeviceCgroupPermission toDeviceCgroupPermission()

Implementation

DeviceCgroupPermission toDeviceCgroupPermission() {
  switch (this) {
    case 'read':
      return DeviceCgroupPermission.read;
    case 'write':
      return DeviceCgroupPermission.write;
    case 'mknod':
      return DeviceCgroupPermission.mknod;
  }
  throw Exception('$this is not known in enum DeviceCgroupPermission');
}