FacetLink constructor

  1. @JsonSerializable(includeIfNull: false)
const FacetLink({
  1. @Default(appBskyRichtextFacetLink) @JsonKey(name: r'$type') String $type,
  2. required String uri,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory FacetLink({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.richtext.facet#link`
  @Default(appBskyRichtextFacetLink) @JsonKey(name: r'$type') String $type,
  required String uri,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _FacetLink;