BlockedPost constructor

  1. @JsonSerializable(includeIfNull: false)
const BlockedPost({
  1. @Default(appBskyFeedDefsBlockedPost) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() required AtUri uri,
  3. required bool blocked,
  4. @BlockedAuthorConverter() required BlockedAuthor author,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory BlockedPost({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#blockedPost`
  @Default(appBskyFeedDefsBlockedPost) @JsonKey(name: r'$type') String $type,
  @AtUriConverter() required AtUri uri,
  required bool blocked,
  @BlockedAuthorConverter() required BlockedAuthor author,

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