create<T extends DataModel> static method
Implementation
static create<T extends DataModel>(Type type) {
final ModelType modelType = _modelTypes[type]!;
final T instance = modelType.constructor() as T;
return instance;
}