(parent, instance, instanceId, context, depth)
| 175 | |
| 176 | |
| 177 | def serializeInstance(parent, instance, instanceId, context, depth): |
| 178 | instanceType = class_name(instance) |
| 179 | serializer = SERIALIZERS[instanceType] if instanceType in SERIALIZERS else None |
| 180 | |
| 181 | if serializer: |
| 182 | return serializer(parent, instance, instanceId, context, depth) |
| 183 | |
| 184 | logger.error(f"!!!No serializer for {instanceType} with id {instanceId}") |
| 185 | |
| 186 | return None |
| 187 | |
| 188 | |
| 189 | # ----------------------------------------------------------------------------- |
no test coverage detected