SearchPostsSkeletonOutput constructor

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

Implementation

@JsonSerializable(includeIfNull: false)
const factory SearchPostsSkeletonOutput({
  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,
  @SkeletonSearchPostConverter() required List<SkeletonSearchPost> posts,

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