DataSchema constructor
const
DataSchema({
- List<
String> ? atType, - String? title,
- Map<
String, String> ? titles, - String? description,
- Map<
String, String> ? descriptions, - Object? constant,
- Object? defaultValue,
- String? unit,
- List<
DataSchema> ? oneOf, - List<
Object?> ? enumeration, - bool? readOnly,
- bool? writeOnly,
- String? format,
- String? type,
- num? minimum,
- num? exclusiveMinimum,
- num? maximum,
- num? exclusiveMaximum,
- num? multipleOf,
- List<
DataSchema> ? items, - int? minItems,
- int? maxItems,
- Map<
String, DataSchema> ? properties, - List<
String> ? required, - int? minLength,
- int? maxLength,
- String? pattern,
- String? contentEncoding,
- String? contentMediaType,
- 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;