Schema.fromDataModel constructor Null safety
- ManagedDataModel dataModel
Creates an instance of this type from dataModel
.
This is preferred method of creating an instance of this type. Each ManagedEntity
in dataModel
will correspond to a SchemaTable in tables.
Implementation
Schema.fromDataModel(ManagedDataModel dataModel) {
_tables = dataModel.entities.map((e) => SchemaTable.fromEntity(e)).toList();
}