@staticmethod
def serialize_point(point: dict) ->dict:
    """ Prepare the point to be sent to the API """
    serialized_point = {'method': point['method'], 'uri': point['uri'],
        'time_request_started': point['time_request_started'].isoformat(),
        'time_elapsed': point['time_elapsed'], 'interactions': point[
        'interactions'], 'response_status': point['response_status'],
        'endpoint_name': point['endpoint_name']}
    if 'url_rule' in point and point['url_rule']:
        serialized_point['url_rule'] = point['url_rule']
    if 'is_not_found' in point and point['is_not_found'] is not None:
        serialized_point['is_not_found'] = point['is_not_found']
    return serialized_point
