JSONSchema.object constructor
JSONSchema.object({})
Construct a schema for an object with one or more properties.
Implementation
JSONSchema.object({
required Map<String, JSONSchema> properties,
List<String>? optionalProperties,
List<String>? propertyOrdering,
String? description,
String? title,
bool? nullable,
Map<String, JSONSchema>? defs,
}) : this(
SchemaType.object,
properties: properties,
optionalProperties: optionalProperties,
propertyOrdering: propertyOrdering,
description: description,
title: title,
nullable: nullable,
defs: defs,
);