public JSONObject toJson() {
    JSONObject metadata = new JSONObject();
    metadata.put(VERSION_KEY, version);
    metadata.put(CONTAINER_ID_KEY, containerId);
    metadata.put(ACCOUNT_ID_KEY, accountId);
    metadata.put(DELETED_KEY, deleted);
    metadata.put(CONTAINER_DELETE_TRIGGER_TIME_KEY, deleteTriggerTimestamp);
    metadata.put(DELETE_PENDING_PARTITIONS_KEY, deletePendingPartitions);
    return metadata;
  }
Serialize {@link Container} object to save to Cosmos.
@return serialized {@link JSONObject}.
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/CosmosContainerDeletionEntry.java