INNER CODE UNIT · Python
LOOBinsGroup
infosecB/LOOBins · src/pyloobins/models.py:170
class LOOBinsGroup(RootModel):
"""LOOBin list base class"""
root: List[LOOBin] = Field(title="LOOBins", description="A list of LOOBins")
def to_stix_bundle(self) -> Bundle:
return Bundle(objects=[loobin.to_stix() for loobin in self.root])