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.
Source
Schema.fromDataModel(ManagedDataModel dataModel) { _tables = dataModel.entities.map((e) => new SchemaTable.fromEntity(e)).toList(); }