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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesPingResult{}

	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.CreateTime = o.CreateTime
	s.Errors = o.Errors
	s.MigrationsLog = o.MigrationsLog
	s.Namespace = o.Namespace
	s.PingID = o.PingID
	s.PingPairs = o.PingPairs
	s.RefreshID = o.RefreshID
	s.RemoteProbes = o.RemoteProbes
	s.UpdateTime = o.UpdateTime
	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 *PingResult) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesPingResult{}
	if o.ID != "" {
		s.ID = bson.ObjectIdHex(o.ID)
	}
	s.CreateTime = o.CreateTime
	s.Errors = o.Errors
	s.MigrationsLog = o.MigrationsLog
	s.Namespace = o.Namespace
	s.PingID = o.PingID
	s.PingPairs = o.PingPairs
	s.RefreshID = o.RefreshID
	s.RemoteProbes = o.RemoteProbes
	s.UpdateTime = o.UpdateTime
	s.ZHash = o.ZHash
	s.Zone = o.Zone
	return s, nil
}
func ( o * PingResult ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesPingResult { } if o . ID != " " { s . ID = bson . ObjectIdHex ( o . ID ) } s . CreateTime = o . CreateTime s . Errors = o . Errors s . MigrationsLog = o . MigrationsLog s . Namespace = o . Namespace s . PingID = o . PingID s . PingPairs = o . PingPairs s . RefreshID = o . RefreshID s . RemoteProbes = o . RemoteProbes s . UpdateTime = o . UpdateTime s . ZHash = o . ZHash s . Zone = o . Zone return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .