model method
Implementation
Model model(String name) {
final m = resolve('model', name);
if (m == null || m is! Model) {
throw GenkitException(
'Model $name not found',
status: StatusCodes.NOT_FOUND,
);
}
return m;
}
Model model(String name) {
final m = resolve('model', name);
if (m == null || m is! Model) {
throw GenkitException(
'Model $name not found',
status: StatusCodes.NOT_FOUND,
);
}
return m;
}