Schema.map constructor
const
Schema.map({
- Xml? xml,
- String? title,
- String? description,
- @JsonKey.new(name: 'default') Map? defaultValue,
- bool? nullable,
- Map? example,
- @JsonKey.new(name: 'additionalProperties', toJson: _toMapProps, fromJson: _fromMapProps) Schema? valueSchema,
- @JsonKey.new(name: '\$ref') @_SchemaRefConverter.new() String? ref,
A generic Schema of map type
Implementation
const factory Schema.map({
Xml? xml,
String? title,
String? description,
@JsonKey(name: 'default') Map? defaultValue,
bool? nullable,
Map? example,
@JsonKey(
name: 'additionalProperties',
toJson: _toMapProps,
fromJson: _fromMapProps)
Schema? valueSchema,
@JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaMap;