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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparseTag{}

	if o.ID != nil {
		s.ID = bson.ObjectIdHex(*o.ID)
	}
	if o.Count != nil {
		s.Count = o.Count
	}
	if o.Namespace != nil {
		s.Namespace = o.Namespace
	}
	if o.Value != nil {
		s.Value = o.Value
	}

	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 *SparseTag) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesSparseTag{}
	if o.ID != nil {
		s.ID = bson.ObjectIdHex(*o.ID)
	}
	if o.Count != nil {
		s.Count = o.Count
	}
	if o.Namespace != nil {
		s.Namespace = o.Namespace
	}
	if o.Value != nil {
		s.Value = o.Value
	}
	return s, nil
}
func ( o * SparseTag ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesSparseTag { } if o . ID != nil { s . ID = bson . ObjectIdHex ( * o . ID ) } if o . Count != nil { s . Count = o . Count } if o . Namespace != nil { s . Namespace = o . Namespace } if o . Value != nil { s . Value = o . Value } return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .