You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: model_slice_map.go
    path of file: ./repos/uptrace/pkg/go-clickhouse/ch
    
    the code of the file until where you have to start completion: package ch

import (
	"reflect"
	"strings"

	"github.com/uptrace/go-clickhouse/ch/chschema"
)

type sliceMapModel struct {
	v     reflect.Value
	slice []map[string]any
}

var _ Model = (*sliceMapModel)(nil)

func newSliceMapMod
    
func (m *sliceMapModel) ScanBlock(block *chschema.Block) error {
	for i := 0; i < block.NumRow; i++ {
		row := make(map[string]any, block.NumColumn)
		for _, col := range block.Columns {
			set(row, col.Name, col.Index(i))
		}
		m.slice = append(m.slice, row)
	}
	m.v.Set(reflect.ValueOf(m.slice))
	return nil
}