stream_manager.util module

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

class stream_manager.util.Util[source]

Bases: object

Validate And Serialize an instance of class to Json bytes. :param data: an instance object :return: a byte array. :raises: :ValidationException

static validate_and_serialize_to_json_bytes(data)[source]
static deserialize_json_bytes_to_obj(bytes, type)[source]