(custom_fields: Optional[List[CustomField]])
| 314 | |
| 315 | @staticmethod |
| 316 | def _serialize_custom_fields(custom_fields: Optional[List[CustomField]]) -> list[dict]: |
| 317 | if not custom_fields: |
| 318 | return [] |
| 319 | return [ |
| 320 | { |
| 321 | "source_field": field.source_field, |
| 322 | "destination_field": field.destination_field, |
| 323 | "data_type": str(field.data_type), |
| 324 | } |
| 325 | for field in custom_fields |
| 326 | ] |
| 327 | |
| 328 | @staticmethod |
| 329 | def _deserialize_custom_fields(serialized_fields: Optional[List[dict]]) -> List[CustomField]: |