def METHOD_NAME(self) -> ModelType:
    try:
        item_type_yaml = self.yaml_data["itemType"]
    except KeyError as e:
        raise ValueError(
            "Only call this for DPG paging model deserialization"
        ) from e
    return cast(ModelType, self.code_model.types_map[id(item_type_yaml)])