JSONSchema.boolean constructor

JSONSchema.boolean({
  1. String? description,
  2. String? title,
  3. bool? nullable,
})

Construct a schema for bool value.

Implementation

JSONSchema.boolean({
  String? description,
  String? title,
  bool? nullable,
}) : this(
        SchemaType.boolean,
        description: description,
        title: title,
        nullable: nullable,
      );