Interaction constructor

  1. @JsonSerializable(includeIfNull: false)
const Interaction({
  1. @Default(appBskyFeedDefsInteraction) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() AtUri? item,
  3. @UInteractionEventConverter() UInteractionEvent? event,
  4. String? feedContext,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Interaction({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#interaction`
  @Default(appBskyFeedDefsInteraction) @JsonKey(name: r'$type') String $type,
  @AtUriConverter() AtUri? item,
  @UInteractionEventConverter() UInteractionEvent? event,

  /// Context on a feed item that was originally supplied by the feed
  /// generator on getFeedSkeleton.
  String? feedContext,

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