Schema.array constructor
const
Schema.array({
- Xml? xml,
- String? title,
- String? description,
- @JsonKey(name: 'default') List? defaultValue,
- bool? nullable,
- dynamic example,
- @JsonKey(fromJson: _fromJsonInt) int? minItems,
- @JsonKey(fromJson: _fromJsonInt) int? maxItems,
- required Schema items,
- @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
A generic Schema of array type
Implementation
const factory Schema.array({
Xml? xml,
String? title,
String? description,
@JsonKey(name: 'default') List? defaultValue,
bool? nullable,
dynamic example,
@JsonKey(fromJson: _fromJsonInt) int? minItems,
@JsonKey(fromJson: _fromJsonInt) int? maxItems,
required Schema items,
@JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaArray;