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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparsePolicyTTL{}

	if o.ID != nil {
		s.ID = bson.ObjectIdHex(*o.ID)
	}
	if o.ExpirationTime != nil {
		s.ExpirationTime = o.ExpirationTime
	}

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