func (o *SparsePolicyRefresh) GetBSON() (interface{}, error) {

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparsePolicyRefresh{}

	if o.SourceID != nil {
		s.SourceID = o.SourceID
	}
	if o.SourceNamespace != nil {
		s.SourceNamespace = o.SourceNamespace
	}
	if o.Type != nil {
		s.Type = o.Type
	}

	return s, nil
}
// GetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
GetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// GetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *SparsePolicyRefresh) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesSparsePolicyRefresh{}
	if o.SourceID != nil {
		s.SourceID = o.SourceID
	}
	if o.SourceNamespace != nil {
		s.SourceNamespace = o.SourceNamespace
	}
	if o.Type != nil {
		s.Type = o.Type
	}
	return s, nil
}
func ( o * SparsePolicyRefresh ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesSparsePolicyRefresh { } if o . SourceID != nil { s . SourceID = o . SourceID } if o . SourceNamespace != nil { s . SourceNamespace = o . SourceNamespace } if o . Type != nil { s . Type = o . Type } return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .