ServerVariable constructor

const ServerVariable({
  1. @JsonKey(name: 'enum') List<String>? enumValue,
  2. @JsonKey(name: 'default') required String defaultValue,
  3. String? description,
})

Implementation

const factory ServerVariable({
  /// An enumeration of string values to be used if the substitution
  /// options are from a limited set. The array must not be empty.
  @JsonKey(name: 'enum') List<String>? enumValue,

  /// The default value to use for substitution, which SHALL be sent if an alternate
  /// value is not supplied. Note this behavior is different than the Schema Object's
  /// treatment of default values, because in those cases parameter values are optional.
  /// If the enum is defined, the value must exist in the enum's values.
  @JsonKey(name: 'default') required String defaultValue,

  /// An optional string describing the host designated by the URL.
  final String? description,
}) = _ServerVariable;