def METHOD_NAME(self, record_result: RecordResult, toOne: Dict[str, RecordResult], toMany: Dict[str, List[RecordResult]]):
    uploadResult = UploadResult(
        record_result=record_result,
        toOne={k: UploadResult(v, {}, {}) for k, v in toOne.items()},
        toMany={k: [UploadResult(v, {}, {}) for v in vs] for k, vs in toMany.items()}
    )
    d = uploadResult.to_json()
    j = json.dumps(d)
    e = json.loads(j)
    validate([e], schema)
    self.assertEqual(uploadResult, json_to_UploadResult(e))