Map<String, dynamic> toMap() { return <String, dynamic>{ 'edgeLocations': edgeLocations, 'name': name, 'sharedSegments': sharedSegments, }; }