toTables method

List<SqfEntityTableBase>? toTables()

Convert defined constant tables into List

Implementation

List<SqfEntityTableBase>? toTables() {
  if (model.databaseTables == null) {
    return null;
  }
  final tables = <SqfEntityTableBase>[];
  for (final table in model.databaseTables!) {
    tables.add(toTable(table));
  }
  return tables;
}