<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export_to_dicts(table, *args, **kwargs):
 """Export a `rows.Table` to a list of dicts"""

    field_names = table.field_names
    return [{key: getattr(row, key) for key in field_names} for row in table]