code: public MultiPolygonTo toTransferObject(MultiPolygon input) {
          MultiPolygonTo result = new MultiPolygonTo();
          double[][][][] coordinates = new double[input.getNumGeometries()][][][];
          for (int i = 0; i < input.getNumGeometries(); i++) {
              coordinates[i] = toTransferObject(input.getGeometryN(i)).getCoordinates();
          }
          result.setCoordinates(coordinates);
          result.setCrs(GeoJsonTo.createCrsTo("EPSG:" + input.getSRID()));
          return result;
      }
docs: Converts a multipolygon to its corresponding Transfer Object
  
  @param input the multipolygon
  @return the transfer object for the multipolygon