def serialize(self, message):
        for key, field in self.fields.items():
            message[key] = field.serialize(message[key])
Serialize the given message in-place, converting inputs to outputs.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/_validation.py/_MessageSerializer.serialize