FacetMention constructor

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

Implementation

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

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