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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparseExport{}

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

	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 *SparseExport) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesSparseExport{}
	if o.APIVersion != nil {
		s.APIVersion = o.APIVersion
	}
	if o.Data != nil {
		s.Data = o.Data
	}
	if o.Identities != nil {
		s.Identities = o.Identities
	}
	if o.Label != nil {
		s.Label = o.Label
	}
	return s, nil
}
func ( o * SparseExport ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesSparseExport { } if o . APIVersion != nil { s . APIVersion = o . APIVersion } if o . Data != nil { s . Data = o . Data } if o . Identities != nil { s . Identities = o . Identities } if o . Label != nil { s . Label = o . Label } return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .