def METHOD_NAME(transaction):
    fields = [
        transaction.id,
        transaction.form_id,
        transaction.server_date,
        transaction.client_date,
        transaction.type,
        transaction.case_id,
        transaction.revoked,
        json.dumps(transaction.details, cls=JSONEncoder),
        transaction.sync_log_id,
    ]
    return ObjectAdapter(fields, CaseTransaction._meta.db_table)