<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_json(json):
 """ Creates a segment from a JSON file. No preprocessing is done. Arguments: json (:obj:`dict`):
 JSON representation. See to_json. Return: :obj:`Segment` """

        points = []
        for point in json['points']:
            points.append(Point.from_json(point))
        return Segment(points)