(self, serialized, value, shape, prefix='')
| 238 | return serialized |
| 239 | |
| 240 | def _serialize(self, serialized, value, shape, prefix=''): |
| 241 | # serialized: The dict that is incrementally added to with the |
| 242 | # final serialized parameters. |
| 243 | # value: The current user input value. |
| 244 | # shape: The shape object that describes the structure of the |
| 245 | # input. |
| 246 | # prefix: The incrementally built up prefix for the serialized |
| 247 | # key (i.e Foo.bar.members.1). |
| 248 | method = getattr( |
| 249 | self, |
| 250 | f'_serialize_type_{shape.type_name}', |
| 251 | self._default_serialize, |
| 252 | ) |
| 253 | method(serialized, value, shape, prefix=prefix) |
| 254 | |
| 255 | def _serialize_type_structure(self, serialized, value, shape, prefix=''): |
| 256 | members = shape.members |
no outgoing calls
no test coverage detected