import json class Image: def __init__(self, id, name, format) -> None: super().__init__() self.id = id self.name = name self.format = format def __str__(self) -> str: return self.toJSON() def toJSON(self): return json.dumps(self.__dict__)