func (o *SparseExport) SetBSON(raw bson.Raw) error {

	if o == nil {
		return nil
	}

	s := &mongoAttributesSparseExport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}

	if s.APIVersion != nil {
		o.APIVersion = s.APIVersion
	}
	if s.Data != nil {
		o.Data = s.Data
	}
	if s.Identities != nil {
		o.Identities = s.Identities
	}
	if s.Label != nil {
		o.Label = s.Label
	}

	return nil
}
// SetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
SetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// SetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *SparseExport) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesSparseExport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	if s.APIVersion != nil {
		o.APIVersion = s.APIVersion
	}
	if s.Data != nil {
		o.Data = s.Data
	}
	if s.Identities != nil {
		o.Identities = s.Identities
	}
	if s.Label != nil {
		o.Label = s.Label
	}
	return nil
}
func ( o * SparseExport ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesSparseExport { } if err := raw . Unmarshal ( s ) ; err != nil { return err } if s . APIVersion != nil { o . APIVersion = s . APIVersion } if s . Data != nil { o . Data = s . Data } if s . Identities != nil { o . Identities = s . Identities } if s . Label != nil { o . Label = s . Label } return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .