I would have used a list comprehension over a list of pairs:

```python
[{'flag':f[0], 'type':f[1]} for f in [['fields_map', 'string'], ['clear_logs', 'boolean']...]]
```