module documentation

A Python "serializer". Doesn't do much serializing per se -- just converts to and from basic Python data types (lists, dicts, strings, etc.). Useful as a basis for other serializers.
Class ​Serializer Serialize a QuerySet to basic Python objects.
Function ​_get​_model Look up a model from an "app_label.model_name" string.
Function ​Deserializer Deserialize simple Python objects back into Django ORM instances.
def _get_model(model_identifier):
Look up a model from an "app_label.model_name" string.
def Deserializer(object_list, *, using=DEFAULT_DB_ALIAS, ignorenonexistent=False, **options):

Deserialize simple Python objects back into Django ORM instances.

It's expected that you pass the Python objects themselves (instead of a stream or a string) to the constructor