Creates a point from a Map with 'x' and 'y' keys.
factory Point.fromMap(Map<String, dynamic> map) { return Point( (map['x'] as num).toDouble(), (map['y'] as num).toDouble(), ); }