def to_json(self): res = Base.to_json(self) res['level'] = self.level return res
def to_json(self): data = Base.to_json(self) data['options'] = [o.to_json() for o in self.options] return data
def to_json(self): data = Base.to_json(self) data['name'] = f'{self.size} / {self.color}' return data