toServiceType method
Implementation
ServiceType toServiceType() {
switch (this) {
case 'DATA':
return ServiceType.data;
case 'CREDENTIAL_PROVIDER':
return ServiceType.credentialProvider;
case 'JOBS':
return ServiceType.jobs;
}
throw Exception('$this is not known in enum ServiceType');
}