RichText.reference constructor
const
RichText.reference({
- @JsonKey.new(name: 'type') @Default.new(RichTextType.reference) RichTextType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
- @JsonKey.new(name: 'name') required String name,
A reference.
Implementation
const factory RichText.reference({
/// Type of the rich text, always "reference"
@JsonKey(name: 'type') @Default(RichTextType.reference) RichTextType type,
/// Text of the reference
@JsonKey(name: 'text') @RichTextConverter() required RichText text,
/// The name of the reference
@JsonKey(name: 'name') required String name,
}) = RichTextReference;