toUsageLimitFeatureType method

UsageLimitFeatureType toUsageLimitFeatureType()

Implementation

UsageLimitFeatureType toUsageLimitFeatureType() {
  switch (this) {
    case 'spectrum':
      return UsageLimitFeatureType.spectrum;
    case 'concurrency-scaling':
      return UsageLimitFeatureType.concurrencyScaling;
  }
  throw Exception('$this is not known in enum UsageLimitFeatureType');
}