toUploadType method
Implementation
UploadType toUploadType() {
switch (this) {
case 'ANDROID_APP':
return UploadType.androidApp;
case 'IOS_APP':
return UploadType.iosApp;
case 'WEB_APP':
return UploadType.webApp;
case 'EXTERNAL_DATA':
return UploadType.externalData;
case 'APPIUM_JAVA_JUNIT_TEST_PACKAGE':
return UploadType.appiumJavaJunitTestPackage;
case 'APPIUM_JAVA_TESTNG_TEST_PACKAGE':
return UploadType.appiumJavaTestngTestPackage;
case 'APPIUM_PYTHON_TEST_PACKAGE':
return UploadType.appiumPythonTestPackage;
case 'APPIUM_NODE_TEST_PACKAGE':
return UploadType.appiumNodeTestPackage;
case 'APPIUM_RUBY_TEST_PACKAGE':
return UploadType.appiumRubyTestPackage;
case 'APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE':
return UploadType.appiumWebJavaJunitTestPackage;
case 'APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE':
return UploadType.appiumWebJavaTestngTestPackage;
case 'APPIUM_WEB_PYTHON_TEST_PACKAGE':
return UploadType.appiumWebPythonTestPackage;
case 'APPIUM_WEB_NODE_TEST_PACKAGE':
return UploadType.appiumWebNodeTestPackage;
case 'APPIUM_WEB_RUBY_TEST_PACKAGE':
return UploadType.appiumWebRubyTestPackage;
case 'CALABASH_TEST_PACKAGE':
return UploadType.calabashTestPackage;
case 'INSTRUMENTATION_TEST_PACKAGE':
return UploadType.instrumentationTestPackage;
case 'UIAUTOMATION_TEST_PACKAGE':
return UploadType.uiautomationTestPackage;
case 'UIAUTOMATOR_TEST_PACKAGE':
return UploadType.uiautomatorTestPackage;
case 'XCTEST_TEST_PACKAGE':
return UploadType.xctestTestPackage;
case 'XCTEST_UI_TEST_PACKAGE':
return UploadType.xctestUiTestPackage;
case 'APPIUM_JAVA_JUNIT_TEST_SPEC':
return UploadType.appiumJavaJunitTestSpec;
case 'APPIUM_JAVA_TESTNG_TEST_SPEC':
return UploadType.appiumJavaTestngTestSpec;
case 'APPIUM_PYTHON_TEST_SPEC':
return UploadType.appiumPythonTestSpec;
case 'APPIUM_NODE_TEST_SPEC':
return UploadType.appiumNodeTestSpec;
case 'APPIUM_RUBY_TEST_SPEC':
return UploadType.appiumRubyTestSpec;
case 'APPIUM_WEB_JAVA_JUNIT_TEST_SPEC':
return UploadType.appiumWebJavaJunitTestSpec;
case 'APPIUM_WEB_JAVA_TESTNG_TEST_SPEC':
return UploadType.appiumWebJavaTestngTestSpec;
case 'APPIUM_WEB_PYTHON_TEST_SPEC':
return UploadType.appiumWebPythonTestSpec;
case 'APPIUM_WEB_NODE_TEST_SPEC':
return UploadType.appiumWebNodeTestSpec;
case 'APPIUM_WEB_RUBY_TEST_SPEC':
return UploadType.appiumWebRubyTestSpec;
case 'INSTRUMENTATION_TEST_SPEC':
return UploadType.instrumentationTestSpec;
case 'XCTEST_UI_TEST_SPEC':
return UploadType.xctestUiTestSpec;
}
throw Exception('$this is not known in enum UploadType');
}