serializeInstance function Calls instance.serialize(). source connection.serializeInstance( instance ) Simply calls serialize on the underlying map.