ObjectSpec constructor

const ObjectSpec({
  1. required String name,
  2. required Map<String, PropertySpec> properties,
  3. List<String> required = const [],
  4. bool additionalProperties = false,
  5. String? title,
  6. String? description,
  7. bool nullable = false,
  8. List<Object>? examples,
  9. bool isDeprecated = false,
})

Creates a new ObjectSpec.

Implementation

const ObjectSpec({
  required this.name,
  required this.properties,
  this.required = const [],
  this.additionalProperties = false,
  this.title,
  super.description,
  super.nullable,
  super.examples,
  super.isDeprecated,
});