code: def from_api_repr(cls, api_repr):
          
          instance = cls(api_repr["type"])
          instance._properties = api_repr
          return instance
docs: Return a :class:`TimePartitioning` object deserialized from a dict.
  
          This method creates a new ``TimePartitioning`` instance that points to
          the ``api_repr`` parameter as its internal properties dict. This means
          that when a ``TimePartitioning`` instance is stored as a property of
          another object, any changes made at the higher level will also appear
          here::
  
              >>> time_partitioning = TimePartitioning()
              >>> table.time_partitioning = time_partitioning
              >>> table.time_partitioning.field = 'timecolumn'
              >>> time_partitioning.field
              'timecolumn'
  
          Args:
              api_repr (Mapping[str, str]):
                  The serialized representation of the TimePartitioning, such as
                  what is output by :meth:`to_api_repr`.
  
          Returns:
              google.cloud.bigquery.table.TimePartitioning:
                  The ``TimePartitioning`` object.