ListComments constructor

  1. @JsonSerializable.new(includeIfNull: false)
const ListComments({
  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: 'post_id') int? postId,
  8. @JsonKey.new(name: 'parent_id') int? parentId,
  9. @JsonKey.new(name: 'max_depth') int? maxDepth,
  10. @JsonKey.new(name: 'depth_first') bool? depthFirst,
  11. @JsonKey.new(name: 'saved_only') bool? savedOnly,
  12. @JsonKey.new(name: 'liked_only') bool? likedOnly,
  13. @JsonKey.new(name: 'person_id') int? personId,
  14. String? auth,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ListComments({
  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: 'post_id') int? postId,
  @JsonKey(name: 'parent_id') int? parentId,
  @JsonKey(name: 'max_depth') int? maxDepth,
  @JsonKey(name: 'depth_first') bool? depthFirst,
  @JsonKey(name: 'saved_only') bool? savedOnly,
  @JsonKey(name: 'liked_only') bool? likedOnly,
  @JsonKey(name: 'person_id') int? personId,
  String? auth,
}) = _ListComments;