<filename>immvis/messagehandler/message_parser.py
import json

from .actions import Action
from .actions import ActionMapper

class MessageParser():

    def parse_json(self, json_str: str) -> Action:
        parsed_message = json.loads(json_str)

        mapper = ActionMapper(data = parsed_message)

        return mapper.marshal()

<filename>immvis/messagehandler/message_parser.py
import json

from .actions import Action
from .actions import ActionMapper

class MessageParser():

    def parse_json(self, json_str: str) -> Action:
        parsed_message = json.loads(json_str)

        mapper = ActionMapper(data = parsed_message)

        return mapper.marshal()
