class_docstr: Dataclass representation of a SavedQuery.
class_docstr_tok: ["Dataclass","representation","of","a","SavedQuery","."]
docstr: Build from pydantic SavedQuery object.
docstr_tok: ["Build","from","pydantic","SavedQuery","object","."]
code: def from_pydantic(
      cls, pydantic_saved_query: SemanticManifestSavedQuery
  ) -> SavedQuery:
      """Build from pydantic SavedQuery object."""
      return cls(
          name=pydantic_saved_query.name,
          description=pydantic_saved_query.description,
          label=pydantic_saved_query.label,
          query_params=pydantic_saved_query.query_params,
          metadata=pydantic_saved_query.metadata,
      )
  
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import List, Optional, Sequence
  from dbt_semantic_interfaces.implementations.elements.dimension import PydanticDimensionTypeParams
  from dbt_semantic_interfaces.protocols.dimension import Dimension
  from dbt_semantic_interfaces.protocols.dimension import DimensionType, DimensionTypeParams
  from dbt_semantic_interfaces.protocols.entity import Entity
  from dbt_semantic_interfaces.protocols.measure import MeasureAggregationParameters
  from dbt_semantic_interfaces.protocols.metadata import Metadata
  from dbt_semantic_interfaces.protocols.metric import Metric
  from dbt_semantic_interfaces.protocols.metric import MetricInputMeasure, MetricType, MetricTypeParams
  from dbt_semantic_interfaces.protocols.saved_query import SavedQuery
  from dbt_semantic_interfaces.protocols.saved_query import SavedQueryQueryParams
  from dbt_semantic_interfaces.protocols.where_filter import WhereFilterIntersection
  from dbt_semantic_interfaces.transformations.add_input_metric_measures import AddInputMetricMeasuresRule
  from dbt_semantic_interfaces.type_enums.aggregation_type import AggregationType
  from dbt_semantic_interfaces.type_enums.entity_type import EntityType
  from metricflow.model.semantics.linkable_spec_resolver import ElementPathKey
  from metricflow.naming.linkable_spec_name import StructuredLinkableSpecName
  from metricflow.specs.specs import DimensionSpec
label_desc: Use image node_id 1 for calling the SavedQuery obj's underlying member method code with example usage: obj.from_pydantic(cls, pydantic_saved_query) and returns: cls