factory IAPoint.fromMap(Map<String, dynamic> map) { return IAPoint( map['x'] as double, map['y'] as double, ); }