toStackAttribute method

StackAttribute toStackAttribute()

Implementation

StackAttribute toStackAttribute() {
  switch (this) {
    case 'STORAGE_CONNECTORS':
      return StackAttribute.storageConnectors;
    case 'STORAGE_CONNECTOR_HOMEFOLDERS':
      return StackAttribute.storageConnectorHomefolders;
    case 'STORAGE_CONNECTOR_GOOGLE_DRIVE':
      return StackAttribute.storageConnectorGoogleDrive;
    case 'STORAGE_CONNECTOR_ONE_DRIVE':
      return StackAttribute.storageConnectorOneDrive;
    case 'REDIRECT_URL':
      return StackAttribute.redirectUrl;
    case 'FEEDBACK_URL':
      return StackAttribute.feedbackUrl;
    case 'THEME_NAME':
      return StackAttribute.themeName;
    case 'USER_SETTINGS':
      return StackAttribute.userSettings;
    case 'EMBED_HOST_DOMAINS':
      return StackAttribute.embedHostDomains;
    case 'IAM_ROLE_ARN':
      return StackAttribute.iamRoleArn;
    case 'ACCESS_ENDPOINTS':
      return StackAttribute.accessEndpoints;
  }
  throw Exception('$this is not known in enum StackAttribute');
}