@classmethod<EOL><INDENT>def from_json(cls, data):<DEDENT>
try:<EOL><INDENT>return loads(data)<EOL><DEDENT>except decoder.JSONDecodeError:  <EOL><INDENT>return {}<EOL><DEDENT>
Convert a JSON formatted string into a dictionary.

:param data: A JSON formatted string to convert to dict format.
:type data: str

:return: The dict representation of the JSON formatted string.
:rtype: dict