def to_dict(self) -> dict:
    images = []
    if self.images:
        for image in self.images:
            if (not image):
                continue
            try:
                images.append({'Type': image['type'], 'Data': image['data']})
            except KeyError as e:
                raise PluginException(cause='Wrong input parameter.', assistance=f'Wrong image: {e}.')
    return clean({'FoundDate': self.found_date, 'Details': {'Title': self.title, 'Description': self.description, 'Type': self.type, 'SubType': self.sub_type, 'Severity': self.severity, 'Source': {'Type': self.source_type, 'NetworkType': self.source_network_type, 'URL': self.source_url, 'Date': self.source_date}, 'Images': images}})
def to_dict(self) -> dict:
    images = []
    if self.images:
        for image in self.images:
            if (not image):
                continue
            try:
                images.append({'Type': image['type'], 'Data': image['data']})
            except KeyError as e:
                raise PluginException(cause='Wrong input parameter.', assistance=f'Wrong image: {e}.')
    return clean({'FoundDate': self.found_date, 'Details': {'Title': self.title, 'Description': self.description, 'Type': self.type, 'SubType': self.sub_type, 'Severity': self.severity, 'Source': {'Type': self.source_type, 'NetworkType': self.source_network_type, 'URL': self.source_url, 'Date': self.source_date}, 'Images': images}})