class_docstr: Dataclass representation of a Entity.
class_docstr_tok: ["Dataclass","representation","of","a","Entity","."]
docstr: Build from pydantic Entity.
docstr_tok: ["Build","from","pydantic","Entity","."]
code: def from_pydantic(
      cls, pydantic_entity: SemanticManifestEntity
  ) -> Entity:
      """Build from pydantic Entity."""
      return cls(
          name=pydantic_entity.name,
          description=pydantic_entity.description,
          type=pydantic_entity.type,
          role=pydantic_entity.role,
          expr=pydantic_entity.expr,
      )
  
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 Entity obj's underlying member method code with example usage: obj.from_pydantic(cls, pydantic_entity) and returns: cls