JSONSchema.integer constructor
JSONSchema.integer({})
Construct a schema for an integer number.
Json schema integer doesn't support format.
Implementation
JSONSchema.integer({
String? description,
String? title,
bool? nullable,
int? minimum,
int? maximum,
}) : this(
SchemaType.integer,
description: description,
title: title,
nullable: nullable,
minimum: minimum?.toDouble(),
maximum: maximum?.toDouble(),
);