Map<String, dynamic> toMap() { return <String, dynamic>{ 'locations': locations, 'targetShape': targetShape, }; }