Schema.object constructor

Schema.object({
  1. required Map<String, Schema> properties,
  2. List<String>? requiredProperties,
  3. String? description,
  4. bool? nullable,
})

Construct a schema for an object with one or more properties.

Implementation

Schema.object({
  required Map<String, Schema> properties,
  List<String>? requiredProperties,
  String? description,
  bool? nullable,
}) : this(
        SchemaType.object,
        properties: properties,
        requiredProperties: requiredProperties,
        description: description,
        nullable: nullable,
      );