Schema constructor

Schema({
  1. required String type,
  2. List<String>? typeUnion,
  3. String? description,
  4. Map<String, Schema>? properties,
  5. Schema? items,
  6. Object? additionalProperties,
  7. List<Object?>? enum_,
  8. List<String>? required,
  9. List<Schema>? oneOf,
  10. List<Schema>? anyOf,
  11. List<Schema>? allOf,
})

Implementation

Schema({
  required this.type,
  this.typeUnion,
  this.description,
  this.properties,
  this.items,
  this.additionalProperties,
  this.enum_,
  this.required,
  this.oneOf,
  this.anyOf,
  this.allOf,
}) : _hasType = true;