Highlight constructor

  1. @JsonSerializable(explicitToJson: true)
const Highlight({
  1. required String field,
  2. required String text,
})

Default Constructor

Implementation

@JsonSerializable(explicitToJson: true)
const factory Highlight(
    {

    ///  Field is the name of the field.
    required String field,

    /// Text is the highlighted text.
    required String text}) = _Highlight;