in pkg/dataplane/internal/client/models_serde.go [402:410]
9 lines of code
4 McCabe index (conditional complexity)
func populate(m map[string]any, k string, v any) {
if v == nil {
return
} else if azcore.IsNullValue(v) {
m[k] = nil
} else if !reflect.ValueOf(v).IsNil() {
m[k] = v
}
}