LuaObject.tableFrom constructor
A convenience factory constructor when the fields-to-be share the same exact name as the key in the output table. Calls LuaObject.table with the keys provided by LuaObject.id.
If raw values (dart Objects) are needed, then use LuaObject.table and map the keys to their values.
Implementation
factory LuaObject.tableFrom(String id, List<LuaObject> toFields) =>
LuaObject.table(id, {for (final o in toFields) o.id: o});