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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparseEnforcerTraceReport{}

	if o.EnforcerID != nil {
		s.EnforcerID = o.EnforcerID
	}
	if o.EnforcerNamespace != nil {
		s.EnforcerNamespace = o.EnforcerNamespace
	}
	if o.Namespace != nil {
		s.Namespace = o.Namespace
	}
	if o.PuID != nil {
		s.PuID = o.PuID
	}
	if o.Records != nil {
		s.Records = o.Records
	}

	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 *SparseEnforcerTraceReport) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesSparseEnforcerTraceReport{}
	if o.EnforcerID != nil {
		s.EnforcerID = o.EnforcerID
	}
	if o.EnforcerNamespace != nil {
		s.EnforcerNamespace = o.EnforcerNamespace
	}
	if o.Namespace != nil {
		s.Namespace = o.Namespace
	}
	if o.PuID != nil {
		s.PuID = o.PuID
	}
	if o.Records != nil {
		s.Records = o.Records
	}
	return s, nil
}
func ( o * SparseEnforcerTraceReport ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesSparseEnforcerTraceReport { } if o . EnforcerID != nil { s . EnforcerID = o . EnforcerID } if o . EnforcerNamespace != nil { s . EnforcerNamespace = o . EnforcerNamespace } if o . Namespace != nil { s . Namespace = o . Namespace } if o . PuID != nil { s . PuID = o . PuID } if o . Records != nil { s . Records = o . Records } return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .