sob/model.py
def as_container_or_simple_type(self) -> Any:
        """
        This function unmarshals and returns the data into one of sob's
        container types, or if the data is of a simple data type--it returns
        that data unmodified
        """
        type_: type
        unmarshalled_data = self.data
        if unmarshalled_data is None:
            unmarshalled_data = NULL
        elif isinstance(self.data, abc.Dictionary):
            type_ = type(self.data)
            if self.value_types is not None:
                unmarshalled_data = type_(
                    self.data, value_types=self.value_types
                )
        elif isinstance(self.data, abc.Array):
            type_ = type(self.data)
            if self.item_types is not None:
                unmarshalled_data = type_(
                    self.data, item_types=self.item_types
                )
        elif isinstance(self.data, (Mapping, abc.Dictionary)):
            unmarshalled_data = Dictionary(
                self.data, value_types=self.value_types
            )
        elif isinstance(self.data, Iterable) and not isinstance(
            self.data, (str, bytes, bytearray)
        ):
            # `None` is interpreted as `NULL` during un-marshalling
            items: List[abc.MarshallableTypes] = [
                (NULL if item is None else item) for item in self.data
            ]
            unmarshalled_data = Array(items, item_types=self.item_types)
        elif not isinstance(self.data, abc.MARSHALLABLE_TYPES):
            raise errors.UnmarshalValueError(
                f"{repr(self.data)} cannot be un-marshalled"
            )
        return unmarshalled_data

        This function unmarshals and returns the data into one of sob's
        container types, or if the data is of a simple data type--it returns
        that data unmodified
        
This function unmarshals and returns the data into one of sob's
container types, or if the data is of a simple data type--it returns
that data unmodified
This function unmarshals and returns the data into one of sob ' s container types or if the data is of a simple data type -- it returns that data unmodified
def as_container_or_simple_type(self) -> Any:
        type_: type
        unmarshalled_data = self.data
        if unmarshalled_data is None:
            unmarshalled_data = NULL
        elif isinstance(self.data, abc.Dictionary):
            type_ = type(self.data)
            if self.value_types is not None:
                unmarshalled_data = type_(
                    self.data, value_types=self.value_types
                )
        elif isinstance(self.data, abc.Array):
            type_ = type(self.data)
            if self.item_types is not None:
                unmarshalled_data = type_(
                    self.data, item_types=self.item_types
                )
        elif isinstance(self.data, (Mapping, abc.Dictionary)):
            unmarshalled_data = Dictionary(
                self.data, value_types=self.value_types
            )
        elif isinstance(self.data, Iterable) and not isinstance(
            self.data, (str, bytes, bytearray)
        ):
            items: List[abc.MarshallableTypes] = [
                (NULL if item is None else item) for item in self.data
            ]
            unmarshalled_data = Array(items, item_types=self.item_types)
        elif not isinstance(self.data, abc.MARSHALLABLE_TYPES):
            raise errors.UnmarshalValueError(
                f"{repr(self.data)} cannot be un-marshalled"
            )
        return unmarshalled_data
def as_container_or_simple_type ( self ) -> Any : type_ : type unmarshalled_data = self . data if unmarshalled_data is None : unmarshalled_data = NULL elif isinstance ( self . data , abc . Dictionary ) : type_ = type ( self . data ) if self . value_types is not None : unmarshalled_data = type_ ( self . data , value_types = self . value_types ) elif isinstance ( self . data , abc . Array ) : type_ = type ( self . data ) if self . item_types is not None : unmarshalled_data = type_ ( self . data , item_types = self . item_types ) elif isinstance ( self . data , ( Mapping , abc . Dictionary ) ) : unmarshalled_data = Dictionary ( self . data , value_types = self . value_types ) elif isinstance ( self . data , Iterable ) and not isinstance ( self . data , ( str , bytes , bytearray ) ) : items : List [ abc . MarshallableTypes ] = [ ( NULL if item is None else item ) for item in self . data ] unmarshalled_data = Array ( items , item_types = self . item_types ) elif not isinstance ( self . data , abc . MARSHALLABLE_TYPES ) : raise errors . UnmarshalValueError ( f"{repr(self.data)} cannot be un-marshalled" ) return unmarshalled_data
This function unmarshals and returns the data into one of sob's
container types, or if the data is of a simple data type--it returns
that data unmodified
This function unmarshals and returns the data into one of sob ' s container types or if the data is of a simple data type -- it returns that data unmodified
"""
        This function unmarshals and returns the data into one of sob's
        container types, or if the data is of a simple data type--it returns
        that data unmodified
        """ # `None` is interpreted as `NULL` during un-marshalling
self