factory Point.fromJson(Map<String, dynamic> json) { return Point(json['x'] as double, json['y'] as double); }