Extracts resource data from the given string and converts them to
        a new resource or updates the given resource from it.

def from_string(self, string_representation, resource=None):
        """
        Extracts resource data from the given string and converts them to
        a new resource or updates the given resource from it.
        """
        stream = NativeIO(string_representation)
        return self.from_stream(stream, resource=resource)