SearchPostsOutput constructor

  1. @JsonSerializable(includeIfNull: false)
const SearchPostsOutput({
  1. String? cursor,
  2. @Default(0) int hitsTotal,
  3. @PostViewConverter() required List<PostView> posts,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory SearchPostsOutput({
  String? cursor,

  /// Count of search hits. Optional, may be rounded/truncated, and may
  /// not be possible to paginate through all hits.
  @Default(0) int hitsTotal,
  @PostViewConverter() required List<PostView> posts,

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