@classmethod<EOL><INDENT>def decode(cls, value):<DEDENT>
try:<EOL><INDENT>return None if value is None elsedict(json.loads(value.decode(cls._encoding)))<EOL><DEDENT>except (TypeError, AttributeError):<EOL><INDENT>return dict(value)<EOL><DEDENT>
decode the data from a json string in redis back into a dict object.

:param value: bytes
:return: dict