class MeasurementInfo {

    private String id;

    private String name;

    private DataType type;

    private List<DimensionInfo> dimensions;

    public static Mono<MeasurementInfo> of(Measurement measurement){<FILL_FUNCTION_BODY>}
}

        return measurement.getDimensions()
            .map(DimensionInfo::of)
            .collectList()
            .map(list->{
                MeasurementInfo info=new MeasurementInfo();
                info.setId(measurement.getDefinition().getId());
                info.setName(measurement.getDefinition().getName());
                info.setDimensions(list);
                return info;
            });
    
<no_super_class>