@classmethod
def from_dict(cls, dict: Dict):
    road_bbox = RoadBoundingBox(dict['road_bbox_size'])
    res = BeamNGMember([tuple(t) for t in dict['control_nodes']], [tuple(t) for t in dict['sample_nodes']], dict['num_spline_nodes'], road_bbox)
    res.distance_to_boundary = dict['distance_to_boundary']
    return res
@classmethod
def from_dict(cls, dict: Dict):
    road_bbox = RoadBoundingBox(dict['road_bbox_size'])
    res = BeamNGMember([tuple(t) for t in dict['control_nodes']], [tuple(t) for t in dict['sample_nodes']], dict['num_spline_nodes'], road_bbox)
    res.distance_to_boundary = dict['distance_to_boundary']
    return res