Example constructor

  1. @JsonSerializable.new(includeIfNull: false)
const Example({
  1. String? summary,
  2. String? description,
  3. dynamic value,
  4. String? externalValue,
})

Creates an Example object.

Implementation

@JsonSerializable(includeIfNull: false)
const factory Example({
  /// A short description for the example.
  String? summary,

  /// A long description for the example.
  String? description,

  /// Embedded literal example. The `value` field and `externalValue` field
  /// are mutually exclusive.
  dynamic value,

  /// A URL that points to the literal example. The `value` field and
  /// `externalValue` field are mutually exclusive.
  String? externalValue,
}) = _Example;