parameters: (
        self,
        opt_pretty=False,
        for_cloud_api=True
    )
return_statement: return serializer.toJSON(
          self,
          opt_pretty,
          for_cloud_api=for_cloud_api
      )
docstring: Serialize this object into a JSON string.
  
      Args:
        opt_pretty: A flag indicating whether to pretty-print the JSON.
        for_cloud_api: Whether the encoding should be done for the Cloud API
          or the legacy API.
  
      Returns:
        The serialized representation of this object.
docstring_summary: Serialize this object into a JSON string.
docstring_tokens: Serialize this object into a JSON string .
function: def serialize(
        self,
        opt_pretty=False,
        for_cloud_api=True
    ):
      """Serialize this object into a JSON string.
  
      Args:
        opt_pretty: A flag indicating whether to pretty-print the JSON.
        for_cloud_api: Whether the encoding should be done for the Cloud API
          or the legacy API.
  
      Returns:
        The serialized representation of this object.
      """
      return serializer.toJSON(
          self,
          opt_pretty,
          for_cloud_api=for_cloud_api
      )
function_tokens: def serialize ( self , opt_pretty = False , for_cloud_api = True ) : return serializer . toJSON ( self , opt_pretty , for_cloud_api = for_cloud_api )