BlockedAuthor constructor

  1. @JsonSerializable(includeIfNull: false)
const BlockedAuthor({
  1. @Default(appBskyFeedDefsBlockedAuthor) @JsonKey(name: r'$type') String $type,
  2. required String did,
  3. @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory BlockedAuthor({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#blockedAuthor`
  @Default(appBskyFeedDefsBlockedAuthor)
  @JsonKey(name: r'$type')
  String $type,
  required String did,
  @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer,

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