Prompt constructor

Prompt({
  1. required String name,
  2. String? title,
  3. String? description,
  4. List<PromptArgument>? arguments,
})

Implementation

factory Prompt({
  required String name,
  String? title,
  String? description,
  List<PromptArgument>? arguments,
}) => Prompt.fromMap({
  'name': name,
  if (title != null) 'title': title,
  if (description != null) 'description': description,
  if (arguments != null) 'arguments': arguments,
});