factory CubeSeries.fromJson(Map<String, dynamic> json) { return CubeSeries( json['name'], json['index'], List.from(json['points'].map((e) => Point.fromJson(e))), ); }