ThreadgateRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const ThreadgateRecord({
  1. @Default(appBskyFeedThreadgate) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() required AtUri post,
  3. @UThreadgateAllowConverter() List<UThreadgateAllow>? allow,
  4. required DateTime createdAt,
  5. @AtUriConverter() List<AtUri>? hiddenReplies,
  6. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ThreadgateRecord({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.threadgate`
  @Default(appBskyFeedThreadgate) @JsonKey(name: r'$type') String $type,

  /// Reference (AT-URI) to the post record.
  @AtUriConverter() required AtUri post,
  @UThreadgateAllowConverter() List<UThreadgateAllow>? allow,
  required DateTime createdAt,

  /// List of hidden reply URIs.
  @AtUriConverter() List<AtUri>? hiddenReplies,

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