GeneratorViewerState constructor

  1. @JsonSerializable(includeIfNull: false)
const GeneratorViewerState({
  1. @Default(appBskyFeedDefsGeneratorViewerState) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() AtUri? like,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory GeneratorViewerState({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#generatorViewerState`
  @Default(appBskyFeedDefsGeneratorViewerState)
  @JsonKey(name: r'$type')
  String $type,
  @AtUriConverter() AtUri? like,

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