toUpdateTargetsOperatingSystem method

UpdateTargetsOperatingSystem toUpdateTargetsOperatingSystem()

Implementation

UpdateTargetsOperatingSystem toUpdateTargetsOperatingSystem() {
  switch (this) {
    case 'ubuntu':
      return UpdateTargetsOperatingSystem.ubuntu;
    case 'raspbian':
      return UpdateTargetsOperatingSystem.raspbian;
    case 'amazon_linux':
      return UpdateTargetsOperatingSystem.amazonLinux;
    case 'openwrt':
      return UpdateTargetsOperatingSystem.openwrt;
  }
  throw Exception('$this is not known in enum UpdateTargetsOperatingSystem');
}