class_docstr: A filter used in a lineage query.
class_docstr_tok: ["A","filter","used","in","a","lineage","query","."]
docstr: Convert the lineage filter to its API representation.
docstr_tok: ["Convert","the","lineage","filter","to","its","API","representation","."]
code: def _to_request_dict(self):
      """Convert the lineage filter to its API representation."""
      filter_request = {}
      if self.sources:
          filter_request["Types"] = list(
              map(
                  lambda x: x.value
                  if isinstance(x, LineageSourceEnum)
                  else x,
                  self.sources,
              )
          )
      if self.entities:
          filter_request["LineageTypes"] = list(
              map(
                  lambda x: x.value
                  if isinstance(x, LineageEntityEnum)
                  else x,
                  self.entities,
              )
          )
      if self.created_before:
          filter_request["CreatedBefore"] = self.created_before
      if self.created_after:
          filter_request["CreatedAfter"] = self.created_after
      if self.modified_before:
          filter_request["ModifiedBefore"] = self.modified_before
      if self.modified_after:
          filter_request["ModifiedAfter"] = self.modified_after
      if self.properties:
          filter_request["Properties"] = self.properties
      return filter_request
  
imports: from __future__ import absolute_import
  from datetime import datetime
  from enum import Enum
  from typing import Any, Optional, Union, List, Dict
  from json import dumps
  from re import sub, search
  from sagemaker.utils import get_module
  from sagemaker.lineage._utils import get_resource_name_from_arn
label_desc: Use image node_id 2 for calling the LineageFilter obj's underlying member method code with example usage: obj._to_request_dict() and returns: filter_request