toTier method
Implementation
Tier toTier() {
switch (this) {
case 'CUSTOM':
return Tier.custom;
case 'DEFAULT':
return Tier.$default;
case 'DOT_NET_CORE':
return Tier.dotNetCore;
case 'DOT_NET_WORKER':
return Tier.dotNetWorker;
case 'DOT_NET_WEB_TIER':
return Tier.dotNetWebTier;
case 'DOT_NET_WEB':
return Tier.dotNetWeb;
case 'SQL_SERVER':
return Tier.sqlServer;
case 'SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP':
return Tier.sqlServerAlwaysonAvailabilityGroup;
case 'MYSQL':
return Tier.mysql;
case 'POSTGRESQL':
return Tier.postgresql;
case 'JAVA_JMX':
return Tier.javaJmx;
case 'ORACLE':
return Tier.oracle;
}
throw Exception('$this is not known in enum Tier');
}