toModel method
convert dartObject model const to SqfEntityModelBase
Implementation
SqfEntityModelBase toModel() {
final dbModel = _DbModel()
..instanceName = instancename
..modelName = dbModelName
..databaseName = getStringValue(model, 'databaseName')
..password = getStringValue(model, 'password')
..dbVersion = getIntValue(model, 'dbVersion')
..sequences = toSequenceList(getListValue(model, 'sequences'))
..databaseTables = toTableList(
getListValue(model, 'databaseTables') ?? <DartObject>[], dbModelName,
defaultColumns: toFields(getListValue(model, 'defaultColumns'),
dbModelName, 'defaultColumns of Model $dbModelName'))
..formTables = toTableList(
getListValue(model, 'formTables') ?? <DartObject>[],
dbModelName,
)
..bundledDatabasePath = getStringValue(model, 'bundledDatabasePath')
..databasePath = getStringValue(model, 'databasePath')
..ignoreForFile = toListString(getListValue(model, 'ignoreForFile'))
..init();
return dbModel;
}