JSONSchema.enumString constructor
JSONSchema.enumString({})
Construct a schema for String value with enumerated possible values.
Implementation
JSONSchema.enumString({
required List<String> enumValues,
String? description,
String? title,
bool? nullable,
}) : this(
SchemaType.string,
enumValues: enumValues,
description: description,
title: title,
nullable: nullable,
format: 'enum',
);