platypush/message/__init__.py
def build(cls, msg):
        """
        Builds a Message object from a dictionary.
        Params:
            msg -- The message as a key-value dictionary, Message object or JSON string
        """
        from platypush.utils import get_message_class_by_type

        msg = cls.parse(msg)
        msgtype = get_message_class_by_type(msg['type'])
        if msgtype != cls:
            return msgtype.build(msg)

        Builds a Message object from a dictionary.
        Params:
            msg -- The message as a key-value dictionary, Message object or JSON string
        
Builds a Message object from a dictionary.
Params:
msg -- The message as a key-value dictionary, Message object or JSON string
Builds a Message object from a dictionary . Params : msg -- The message as a key - value dictionary Message object or JSON string
def build(cls, msg):
        from platypush.utils import get_message_class_by_type
        msg = cls.parse(msg)
        msgtype = get_message_class_by_type(msg['type'])
        if msgtype != cls:
            return msgtype.build(msg)
def build ( cls , msg ) : from platypush . utils import get_message_class_by_type msg = cls . parse ( msg ) msgtype = get_message_class_by_type ( msg [ 'type' ] ) if msgtype != cls : return msgtype . build ( msg )
Builds a Message object from a dictionary.
Builds a Message object from a dictionary .
"""
        Builds a Message object from a dictionary.
        Params:
            msg -- The message as a key-value dictionary, Message object or JSON string
        """
cls
msg