toSourceType method

SourceType toSourceType()

Implementation

SourceType toSourceType() {
  switch (this) {
    case 'CLUSTER':
      return SourceType.cluster;
    case 'PARAMETER_GROUP':
      return SourceType.parameterGroup;
    case 'SUBNET_GROUP':
      return SourceType.subnetGroup;
  }
  throw Exception('$this is not known in enum SourceType');
}