func newFieldsSet(m value.Map, fields []field) fieldsSet {
	if m == nil {
		return nil
	}
	set := fieldsSet{}
	for _, f := range fields {
		if subField, ok := m.Get(string(f)); ok && !subField.IsNull() {
			set.Add(f)
		}
	}
	return set
}
// newFieldsSet returns a map of the fields that are part of the union and are set
// in the given map.
newFieldsSet returns a map of the fields that are part of the union and are set
in the given map.
// newFieldsSet returns a map of the fields that are part of the union and are set // in the given map .
func newFieldsSet(m value.Map, fields []field) fieldsSet {
	if m == nil {
		return nil
	}
	set := fieldsSet{}
	for _, f := range fields {
		if subField, ok := m.Get(string(f)); ok && !subField.IsNull() {
			set.Add(f)
		}
	}
	return set
}
func newFieldsSet ( m value . Map , fields [ ] field ) fieldsSet { if m == nil { return nil } set := fieldsSet { } for _ , f := range fields { if subField , ok := m . Get ( string ( f ) ) ; ok && ! subField . IsNull ( ) { set . Add ( f ) } } return set }
newFieldsSet returns a map of the fields that are part of the union and are set
in the given map.
newFieldsSet returns a map of the fields that are part of the union and are set in the given map .