Schema.map constructor

const Schema.map({
  1. Xml? xml,
  2. String? title,
  3. String? description,
  4. @JsonKey(name: 'default') Map? defaultValue,
  5. bool? nullable,
  6. Map? example,
  7. @JsonKey(name: 'additionalProperties', toJson: _toMapProps, fromJson: _fromMapProps) Schema? valueSchema,
  8. @JsonKey(name: '\$ref') @_SchemaRefConverter() 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;