(
      self,
      opt_pretty=False,
      for_cloud_api=True
  )
return serializer.toJSON(
        self,
        opt_pretty,
        for_cloud_api=for_cloud_api
    )
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.
Serialize this object into a JSON string.
Serialize this object into a JSON string .
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
    )
def serialize ( self , opt_pretty = False , for_cloud_api = True ) : return serializer . toJSON ( self , opt_pretty , for_cloud_api = for_cloud_api )