Class DefaultObjectSerializer

    • Constructor Detail

      • DefaultObjectSerializer

        public DefaultObjectSerializer()
    • Method Detail

      • deserialize

        public <T> T deserialize​(byte[] data,
                                 TypeRef<T> type)
                          throws IOException
        Deserializes the byte array into the original object.
        Specified by:
        deserialize in interface DaprObjectSerializer
        Overrides:
        deserialize in class ObjectSerializer
        Type Parameters:
        T - Generic type of the object being deserialized.
        Parameters:
        data - Content to be parsed.
        type - Type of the object being deserialized.
        Returns:
        Object of type T.
        Throws:
        IOException - In case content cannot be deserialized.