Schema constructor

Schema({
  1. required Type type,
  2. String format = '',
  3. String title = '',
  4. String description = '',
  5. bool nullable = false,
  6. List<String> enum$ = const [],
  7. Schema? items,
  8. int maxItems = 0,
  9. int minItems = 0,
  10. Map<String, Schema> properties = const {},
  11. List<String> required = const [],
  12. int minProperties = 0,
  13. int maxProperties = 0,
  14. double? minimum,
  15. double? maximum,
  16. int minLength = 0,
  17. int maxLength = 0,
  18. String pattern = '',
  19. Value? example,
  20. List<Schema> anyOf = const [],
  21. List<String> propertyOrdering = const [],
  22. Value? default$,
})

Implementation

Schema({
  required this.type,
  this.format = '',
  this.title = '',
  this.description = '',
  this.nullable = false,
  this.enum$ = const [],
  this.items,
  this.maxItems = 0,
  this.minItems = 0,
  this.properties = const {},
  this.required = const [],
  this.minProperties = 0,
  this.maxProperties = 0,
  this.minimum,
  this.maximum,
  this.minLength = 0,
  this.maxLength = 0,
  this.pattern = '',
  this.example,
  this.anyOf = const [],
  this.propertyOrdering = const [],
  this.default$,
}) : super(fullyQualifiedName);