toSourceType method
Implementation
SourceType toSourceType() {
switch (this) {
case 'cluster':
return SourceType.cluster;
case 'cluster-parameter-group':
return SourceType.clusterParameterGroup;
case 'cluster-security-group':
return SourceType.clusterSecurityGroup;
case 'cluster-snapshot':
return SourceType.clusterSnapshot;
case 'scheduled-action':
return SourceType.scheduledAction;
}
throw Exception('$this is not known in enum SourceType');
}