Server constructor

  1. @JsonSerializable.new(includeIfNull: false, explicitToJson: true)
const Server({
  1. required String url,
  2. String? description,
  3. Map<String, ServerVariable>? variables,
})

Creates a Server object.

Implementation

@JsonSerializable(includeIfNull: false, explicitToJson: true)
const factory Server({
  /// A URL to the target host.
  required String url,

  /// A brief description of the server.
  String? description,

  /// A map of server variables for URL templating.
  Map<String, ServerVariable>? variables,
}) = _Server;