PromptOptions.fromJson constructor

PromptOptions.fromJson(
  1. Map<String, dynamic> json
)

Alternate constructor that creates a PromptOptions from a json.

Params:

  • json: contains the source for instance creation.

Implementation

factory PromptOptions.fromJson(Map<String, dynamic> json) {
  return const PromptOptionsConverter().fromJson(json);
}