(x)
| 169 | result = {} |
| 170 | |
| 171 | def convert(x): |
| 172 | if hasattr(x, "to_dict"): |
| 173 | args = getfullargspec(x.to_dict).args |
| 174 | if len(args) == 1: |
| 175 | return x.to_dict() |
| 176 | else: |
| 177 | return x.to_dict(serialize) |
| 178 | else: |
| 179 | return x |
| 180 | |
| 181 | for attr, _ in six.iteritems(self.openapi_types): |
| 182 | value = getattr(self, attr) |