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