src/Text/Template.php
public function deserializeJSON($jsonString)
    {
        $data = json_decode($jsonString);

        $this->setContent($data->content);
        $this->setContext($data->context);
    }
public function deserializeJSON($jsonString)
    {
        $data = json_decode($jsonString);

        $this->setContent($data->content);
        $this->setContext($data->context);
    }
Updates the element implementing this interface using a JSON representation.

This means updating the state of this object with that defined in the JSON
as opposed to returning a new instance of this object.

@param string $jsonString Representation of the object.

@return void