original_docstring: Serialize resource value to based on it's type.
docstring: Serialize resource value to based on it's type.
docstring_tokens: Serialize resource value to based on it ' s type .
code: def _to_dict_value(cls, value: typing.Any) -> typing.Union[str, typing.List[str]]:
          """Serialize resource value to based on it's type."""
          if isinstance(value, datetime):
              return serialize_datetime(value)
          elif isinstance(value, GitHubBase):
              return value.to_dict()
          elif issubclass(value.__class__, enum.Enum):
              return value.value
          elif isinstance(value, list):
              return list(cls._to_dict_value(item) for item in value)
  
          return value
code_tokens: def _to_dict_value ( cls , value : typing . Any ) -> typing . Union [ str , typing . List [ str ] ] : if isinstance ( value , datetime ) : return serialize_datetime ( value ) elif isinstance ( value , GitHubBase ) : return value . to_dict ( ) elif issubclass ( value . __class__ , enum . Enum ) : return value . value elif isinstance ( value , list ) : return list ( cls . _to_dict_value ( item ) for item in value ) return value
short_docstring: Serialize resource value to based on it's type.
short_docstring_tokens: Serialize resource value to based on it ' s type .
comment: """Serialize resource value to based on it's type."""