toResourceAttribute method

ResourceAttribute toResourceAttribute()

Implementation

ResourceAttribute toResourceAttribute() {
  switch (this) {
    case 'Properties':
      return ResourceAttribute.properties;
    case 'Metadata':
      return ResourceAttribute.metadata;
    case 'CreationPolicy':
      return ResourceAttribute.creationPolicy;
    case 'UpdatePolicy':
      return ResourceAttribute.updatePolicy;
    case 'DeletionPolicy':
      return ResourceAttribute.deletionPolicy;
    case 'Tags':
      return ResourceAttribute.tags;
  }
  throw Exception('$this is not known in enum ResourceAttribute');
}