JsonSchemaProperty constructor

const JsonSchemaProperty({
  1. required String key,
  2. required String type,
  3. String? title,
  4. String? description,
  5. String? format,
  6. dynamic defaultValue,
  7. List? enumValues,
  8. List<String>? enumLabels,
  9. num? minimum,
  10. num? maximum,
  11. int? minLength,
  12. int? maxLength,
  13. String? pattern,
  14. bool required = false,
  15. bool readOnly = false,
  16. bool writeOnly = false,
  17. JsonSchemaProperty? items,
  18. Map<String, JsonSchemaProperty>? properties,
  19. String? uiWidget,
  20. int? uiOrder,
  21. bool uiHidden = false,
  22. String? uiPlaceholder,
  23. String? uiHelp,
  24. List<Map<String, dynamic>>? oneOf,
  25. List<Map<String, dynamic>>? anyOf,
  26. List<Map<String, dynamic>>? allOf,
  27. String? ref,
  28. dynamic const_,
})

Implementation

const JsonSchemaProperty({
  required this.key,
  required this.type,
  this.title,
  this.description,
  this.format,
  this.defaultValue,
  this.enumValues,
  this.enumLabels,
  this.minimum,
  this.maximum,
  this.minLength,
  this.maxLength,
  this.pattern,
  this.required = false,
  this.readOnly = false,
  this.writeOnly = false,
  this.items,
  this.properties,
  this.uiWidget,
  this.uiOrder,
  this.uiHidden = false,
  this.uiPlaceholder,
  this.uiHelp,
  this.oneOf,
  this.anyOf,
  this.allOf,
  this.ref,
  this.const_,
});