Example constructor

const Example({
  1. String? summary,
  2. String? description,
  3. dynamic value,
  4. String? externalValue,
  5. @JsonKey(name: '\$ref') @_ExampleRefConverter() String? ref,
})

Implementation

const factory Example({
  /// Short description for the example.
  String? summary,

  /// Long description for the example.
  String? description,

  /// Embedded literal example
  dynamic value,

  /// A URI that points to the literal example.
  String? externalValue,

  /// Reference to a response defined in [Components.examples]
  @JsonKey(name: '\$ref') @_ExampleRefConverter() String? ref,
}) = ExampleObject;