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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesClaims{}

	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.Content = o.Content
	s.FirstSeen = o.FirstSeen
	s.Hash = o.Hash
	s.LastSeen = o.LastSeen
	s.MigrationsLog = o.MigrationsLog
	s.Namespace = o.Namespace
	s.ZHash = o.ZHash
	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 *Claims) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesClaims{}
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.Content = o.Content
	s.FirstSeen = o.FirstSeen
	s.Hash = o.Hash
	s.LastSeen = o.LastSeen
	s.MigrationsLog = o.MigrationsLog
	s.Namespace = o.Namespace
	s.ZHash = o.ZHash
	s.Zone = o.Zone
	return s, nil
}
func ( o * Claims ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesClaims { } if o . ID != " " { s . ID = bson . ObjectIdHex ( o . ID ) } s . Content = o . Content s . FirstSeen = o . FirstSeen s . Hash = o . Hash s . LastSeen = o . LastSeen s . MigrationsLog = o . MigrationsLog s . Namespace = o . Namespace s . ZHash = o . ZHash s . Zone = o . Zone return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .