DataSchema constructor

const DataSchema({
  1. List<String>? atType,
  2. String? title,
  3. Map<String, String>? titles,
  4. String? description,
  5. Map<String, String>? descriptions,
  6. Object? constant,
  7. Object? defaultValue,
  8. String? unit,
  9. List<DataSchema>? oneOf,
  10. List<Object?>? enumeration,
  11. bool? readOnly,
  12. bool? writeOnly,
  13. String? format,
  14. String? type,
  15. num? minimum,
  16. num? exclusiveMinimum,
  17. num? maximum,
  18. num? exclusiveMaximum,
  19. num? multipleOf,
  20. List<DataSchema>? items,
  21. int? minItems,
  22. int? maxItems,
  23. Map<String, DataSchema>? properties,
  24. List<String>? required,
  25. int? minLength,
  26. int? maxLength,
  27. String? pattern,
  28. String? contentEncoding,
  29. String? contentMediaType,
  30. Map<String, dynamic> additionalFields = const {},
})

Constructor

Implementation

const DataSchema({
  this.atType,
  this.title,
  this.titles,
  this.description,
  this.descriptions,
  this.constant,
  this.defaultValue,
  this.unit,
  this.oneOf,
  this.enumeration,
  bool? readOnly,
  bool? writeOnly,
  this.format,
  this.type,
  this.minimum,
  this.exclusiveMinimum,
  this.maximum,
  this.exclusiveMaximum,
  this.multipleOf,
  this.items,
  this.minItems,
  this.maxItems,
  this.properties,
  this.required,
  this.minLength,
  this.maxLength,
  this.pattern,
  this.contentEncoding,
  this.contentMediaType,
  this.additionalFields = const {},
})  : readOnly = readOnly ?? _defaultReadOnly,
      writeOnly = writeOnly ?? _defaultWriteOnly;