(mongodb >=1.7.0)
MongoDB\Driver\ReadPreference::serialize — Serialize a ReadPreference
This function has no parameters.
Returns the serialized representation of the MongoDB\Driver\ReadPreference.