toSourceType method
Implementation
SourceType toSourceType() {
switch (this) {
case 'db-instance':
return SourceType.dbInstance;
case 'db-parameter-group':
return SourceType.dbParameterGroup;
case 'db-security-group':
return SourceType.dbSecurityGroup;
case 'db-snapshot':
return SourceType.dbSnapshot;
}
throw Exception('$this is not known in enum SourceType');
}