Decode response from client message

def decode_response(client_message, to_object=None):
    """ Decode response from client message"""
    parameters = dict(response=None)
    if not client_message.read_bool():
        parameters['response'] = EntryViewCodec.decode(client_message, to_object)
    return parameters