Map<String, dynamic> toJson() { return { 'outerRing': outerRing.toJson(), 'innerRings': innerRings.map((LinearRing lr) => lr.toJson()).toList() }; }