toFeature method

Feature toFeature()

Implementation

Feature toFeature() {
  switch (this) {
    case 'BLUETOOTH':
      return Feature.bluetooth;
    case 'VOLUME':
      return Feature.volume;
    case 'NOTIFICATIONS':
      return Feature.notifications;
    case 'LISTS':
      return Feature.lists;
    case 'SKILLS':
      return Feature.skills;
    case 'NETWORK_PROFILE':
      return Feature.networkProfile;
    case 'SETTINGS':
      return Feature.settings;
    case 'ALL':
      return Feature.all;
  }
  throw Exception('$this is not known in enum Feature');
}