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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesSparsePingResult{}

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