// 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 *SparsePolicyRefresh) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesSparsePolicyRefresh{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	if s.SourceID != nil {
		o.SourceID = s.SourceID
	}
	if s.SourceNamespace != nil {
		o.SourceNamespace = s.SourceNamespace
	}
	if s.Type != nil {
		o.Type = s.Type
	}
	return nil
}
func ( o * SparsePolicyRefresh ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesSparsePolicyRefresh { } if err := raw . Unmarshal ( s ) ; err != nil { return err } if s . SourceID != nil { o . SourceID = s . SourceID } if s . SourceNamespace != nil { o . SourceNamespace = s . SourceNamespace } if s . Type != nil { o . Type = s . Type } return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .