Map<String, dynamic> toMap() { return { 'tablename': tablename, if (where != null) 'where': where, if (include != null) 'include': include?.map((e) => e.toMap()).toList(), }; }