def METHOD_NAME(self, row):
    return {
        "id": row['id'],
        "stepid": row['stepid'],
        "name": row['name'],
        "slug": row['slug'],
        "complete": bool(row['complete']),
        "num_lines": row['num_lines'],
        "type": row['type']
    }