ListPosts constructor

  1. @JsonSerializable.new(includeIfNull: false)
const ListPosts({
  1. int? limit,
  2. int? page,
  3. String? sort,
  4. @JsonKey.new(name: 'type_') String? type,
  5. @JsonKey.new(name: 'community_id') int? communityId,
  6. @JsonKey.new(name: 'community_name') String? communityName,
  7. @JsonKey.new(name: 'feed_id') int? feedId,
  8. @JsonKey.new(name: 'topic_id') int? topicId,
  9. @JsonKey.new(name: 'saved_only') bool? savedOnly,
  10. @JsonKey.new(name: 'liked_only') bool? likedOnly,
  11. @JsonKey.new(name: 'person_id') int? personId,
  12. @JsonKey.new(name: 'ignore_sticky') bool? ignoreSticky,
  13. String? auth,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ListPosts({
  int? limit,
  int? page,
  String? sort,
  @JsonKey(name: 'type_') String? type,
  @JsonKey(name: 'community_id') int? communityId,
  @JsonKey(name: 'community_name') String? communityName,
  @JsonKey(name: 'feed_id') int? feedId,
  @JsonKey(name: 'topic_id') int? topicId,
  @JsonKey(name: 'saved_only') bool? savedOnly,
  @JsonKey(name: 'liked_only') bool? likedOnly,
  @JsonKey(name: 'person_id') int? personId,
  @JsonKey(name: 'ignore_sticky') bool? ignoreSticky,
  String? auth,
}) = _ListPosts;