PostgateRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const PostgateRecord({
  1. @Default(appBskyFeedPostgate) @JsonKey(name: r'$type') String $type,
  2. required DateTime createdAt,
  3. @AtUriConverter() required AtUri post,
  4. @AtUriConverter() List<AtUri>? detachedEmbeddingUris,
  5. @UPostgateEmbeddingRuleConverter() List<UPostgateEmbeddingRule>? embeddingRules,
  6. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory PostgateRecord({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.postgate`
  @Default(appBskyFeedPostgate) @JsonKey(name: r'$type') String $type,
  required DateTime createdAt,

  /// Reference (AT-URI) to the post record.
  @AtUriConverter() required AtUri post,

  /// List of AT-URIs embedding this post that the author has detached
  /// from.
  @AtUriConverter() List<AtUri>? detachedEmbeddingUris,
  @UPostgateEmbeddingRuleConverter()
  List<UPostgateEmbeddingRule>? embeddingRules,

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