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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparseEnforcerReport{}

	if o.CPULoad != nil {
		s.CPULoad = o.CPULoad
	}
	if o.ID != nil {
		s.ID = bson.ObjectIdHex(*o.ID)
	}
	if o.EnforcerID != nil {
		s.EnforcerID = o.EnforcerID
	}
	if o.LicenseType != nil {
		s.LicenseType = o.LicenseType
	}
	if o.Memory != nil {
		s.Memory = o.Memory
	}
	if o.MigrationsLog != nil {
		s.MigrationsLog = o.MigrationsLog
	}
	if o.Name != nil {
		s.Name = o.Name
	}
	if o.Namespace != nil {
		s.Namespace = o.Namespace
	}
	if o.Processes != nil {
		s.Processes = o.Processes
	}
	if o.Timestamp != nil {
		s.Timestamp = o.Timestamp
	}
	if o.ZHash != nil {
		s.ZHash = o.ZHash
	}
	if o.Zone != nil {
		s.Zone = o.Zone
	}

	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 *SparseEnforcerReport) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesSparseEnforcerReport{}
	if o.CPULoad != nil {
		s.CPULoad = o.CPULoad
	}
	if o.ID != nil {
		s.ID = bson.ObjectIdHex(*o.ID)
	}
	if o.EnforcerID != nil {
		s.EnforcerID = o.EnforcerID
	}
	if o.LicenseType != nil {
		s.LicenseType = o.LicenseType
	}
	if o.Memory != nil {
		s.Memory = o.Memory
	}
	if o.MigrationsLog != nil {
		s.MigrationsLog = o.MigrationsLog
	}
	if o.Name != nil {
		s.Name = o.Name
	}
	if o.Namespace != nil {
		s.Namespace = o.Namespace
	}
	if o.Processes != nil {
		s.Processes = o.Processes
	}
	if o.Timestamp != nil {
		s.Timestamp = o.Timestamp
	}
	if o.ZHash != nil {
		s.ZHash = o.ZHash
	}
	if o.Zone != nil {
		s.Zone = o.Zone
	}
	return s, nil
}
func ( o * SparseEnforcerReport ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesSparseEnforcerReport { } if o . CPULoad != nil { s . CPULoad = o . CPULoad } if o . ID != nil { s . ID = bson . ObjectIdHex ( * o . ID ) } if o . EnforcerID != nil { s . EnforcerID = o . EnforcerID } if o . LicenseType != nil { s . LicenseType = o . LicenseType } if o . Memory != nil { s . Memory = o . Memory } if o . MigrationsLog != nil { s . MigrationsLog = o . MigrationsLog } if o . Name != nil { s . Name = o . Name } if o . Namespace != nil { s . Namespace = o . Namespace } if o . Processes != nil { s . Processes = o . Processes } if o . Timestamp != nil { s . Timestamp = o . Timestamp } if o . ZHash != nil { s . ZHash = o . ZHash } if o . Zone != nil { s . Zone = o . Zone } return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .