// SetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
SetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// SetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *SparsePolicyTTL) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesSparsePolicyTTL{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	id := s.ID.Hex()
	o.ID = &id
	if s.ExpirationTime != nil {
		o.ExpirationTime = s.ExpirationTime
	}
	return nil
}
func ( o * SparsePolicyTTL ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesSparsePolicyTTL { } if err := raw . Unmarshal ( s ) ; err != nil { return err } id := s . ID . Hex ( ) o . ID = & id if s . ExpirationTime != nil { o . ExpirationTime = s . ExpirationTime } return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .