code: public MultiPolygon toMultiPolygon(
              List<com.google.android.gms.maps.model.Polygon> polygonList,
              boolean hasZ, boolean hasM) {
  
          MultiPolygon multiPolygon = new MultiPolygon(hasZ, hasM);
  
          for (com.google.android.gms.maps.model.Polygon mapPolygon : polygonList) {
              Polygon polygon = toPolygon(mapPolygon);
              multiPolygon.addPolygon(polygon);
          }
  
          return multiPolygon;
      }
docs: Convert a list of {@link com.google.android.gms.maps.model.Polygon} to a
  {@link MultiPolygon}
  
  @param polygonList polygon list
  @param hasZ        has z flag
  @param hasM        has m flag
  @return multi polygon