model method

Model model(
  1. String name
)

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;
}