GetPosts constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const GetPosts({
  1. @JsonKey(name: 'type_') PostListingType? type,
  2. SortType? sort,
  3. int? page,
  4. int? limit,
  5. int? communityId,
  6. String? communityName,
  7. bool? savedOnly,
  8. String? auth,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory GetPosts({
  @JsonKey(name: 'type_') PostListingType? type,
  SortType? sort,
  int? page,
  int? limit,
  int? communityId,
  String? communityName,
  bool? savedOnly,
  String? auth,
}) = _GetPosts;