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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesPacketReport{}

	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.TCPFlags = o.TCPFlags
	s.Claims = o.Claims
	s.DestinationIP = o.DestinationIP
	s.DestinationPort = o.DestinationPort
	s.DropReason = o.DropReason
	s.Encrypt = o.Encrypt
	s.EnforcerID = o.EnforcerID
	s.EnforcerNamespace = o.EnforcerNamespace
	s.Event = o.Event
	s.Length = o.Length
	s.Mark = o.Mark
	s.MigrationsLog = o.MigrationsLog
	s.Namespace = o.Namespace
	s.PacketID = o.PacketID
	s.Protocol = o.Protocol
	s.PuID = o.PuID
	s.RawPacket = o.RawPacket
	s.SourceIP = o.SourceIP
	s.SourcePort = o.SourcePort
	s.Timestamp = o.Timestamp
	s.TriremePacket = o.TriremePacket
	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 *PacketReport) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesPacketReport{}
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.TCPFlags = o.TCPFlags
	s.Claims = o.Claims
	s.DestinationIP = o.DestinationIP
	s.DestinationPort = o.DestinationPort
	s.DropReason = o.DropReason
	s.Encrypt = o.Encrypt
	s.EnforcerID = o.EnforcerID
	s.EnforcerNamespace = o.EnforcerNamespace
	s.Event = o.Event
	s.Length = o.Length
	s.Mark = o.Mark
	s.MigrationsLog = o.MigrationsLog
	s.Namespace = o.Namespace
	s.PacketID = o.PacketID
	s.Protocol = o.Protocol
	s.PuID = o.PuID
	s.RawPacket = o.RawPacket
	s.SourceIP = o.SourceIP
	s.SourcePort = o.SourcePort
	s.Timestamp = o.Timestamp
	s.TriremePacket = o.TriremePacket
	s.ZHash = o.ZHash
	s.Zone = o.Zone
	return s, nil
}
func ( o * PacketReport ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesPacketReport { } if o . ID != " " { s . ID = bson . ObjectIdHex ( o . ID ) } s . TCPFlags = o . TCPFlags s . Claims = o . Claims s . DestinationIP = o . DestinationIP s . DestinationPort = o . DestinationPort s . DropReason = o . DropReason s . Encrypt = o . Encrypt s . EnforcerID = o . EnforcerID s . EnforcerNamespace = o . EnforcerNamespace s . Event = o . Event s . Length = o . Length s . Mark = o . Mark s . MigrationsLog = o . MigrationsLog s . Namespace = o . Namespace s . PacketID = o . PacketID s . Protocol = o . Protocol s . PuID = o . PuID s . RawPacket = o . RawPacket s . SourceIP = o . SourceIP s . SourcePort = o . SourcePort s . Timestamp = o . Timestamp s . TriremePacket = o . TriremePacket s . ZHash = o . ZHash s . Zone = o . Zone return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .