Schema.enumeration constructor

const Schema.enumeration({
  1. String? title,
  2. String? description,
  3. String? example,
  4. @JsonKey(name: 'default') String? defaultValue,
  5. bool? nullable,
  6. @JsonKey(includeToJson: false, includeFromJson: false) String? unknownValue,
  7. @JsonKey(name: 'enum') List<String>? values,
  8. @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
})

Implementation

const factory Schema.enumeration({
  String? title,
  String? description,
  String? example,
  @JsonKey(name: 'default') String? defaultValue,
  bool? nullable,
  @JsonKey(includeToJson: false, includeFromJson: false) String? unknownValue,
  @JsonKey(name: 'enum') List<String>? values,
  @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaEnum;