toApiKeySourceType method

ApiKeySourceType toApiKeySourceType()

Implementation

ApiKeySourceType toApiKeySourceType() {
  switch (this) {
    case 'HEADER':
      return ApiKeySourceType.header;
    case 'AUTHORIZER':
      return ApiKeySourceType.authorizer;
  }
  throw Exception('$this is not known in enum ApiKeySourceType');
}