ReplyRef constructor

  1. @JsonSerializable(includeIfNull: false)
const ReplyRef({
  1. @Default(appBskyFeedDefsReplyRef) @JsonKey(name: r'$type') String $type,
  2. @UReplyRefRootConverter() required UReplyRefRoot root,
  3. @UReplyRefParentConverter() required UReplyRefParent parent,
  4. @ProfileViewBasicConverter() ProfileViewBasic? grandparentAuthor,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ReplyRef({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#replyRef`
  @Default(appBskyFeedDefsReplyRef) @JsonKey(name: r'$type') String $type,
  @UReplyRefRootConverter() required UReplyRefRoot root,
  @UReplyRefParentConverter() required UReplyRefParent parent,

  /// When parent is a reply to another post, this is the author of
  /// that post.
  @ProfileViewBasicConverter() ProfileViewBasic? grandparentAuthor,

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