def serialize(msg):
    """
    Prepare message for serialization

    :param msg: Message to serialize
    :type msg: BasicRequest
    :return: Message as dict
    :rtype: dict
    """
    return msg.to_dict()
