CreateFeed constructor

  1. @JsonSerializable.new(includeIfNull: false)
const CreateFeed({
  1. required String name,
  2. required String title,
  3. String? description,
  4. @JsonKey.new(name: 'icon_url') String? iconUrl,
  5. @JsonKey.new(name: 'banner_url') String? bannerUrl,
  6. bool? nsfw,
  7. bool? nsfl,
  8. bool? public,
  9. String? communities,
  10. @JsonKey.new(name: 'is_instance_feed') bool? isInstanceFeed,
  11. @JsonKey.new(name: 'show_child_posts') bool? showChildPosts,
  12. @JsonKey.new(name: 'parent_feed_id') int? parentFeedId,
  13. required String auth,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory CreateFeed({
  required String name,
  required String title,
  String? description,
  @JsonKey(name: 'icon_url') String? iconUrl,
  @JsonKey(name: 'banner_url') String? bannerUrl,
  bool? nsfw,
  bool? nsfl,
  bool? public,
  String? communities,
  @JsonKey(name: 'is_instance_feed') bool? isInstanceFeed,
  @JsonKey(name: 'show_child_posts') bool? showChildPosts,
  @JsonKey(name: 'parent_feed_id') int? parentFeedId,
  required String auth,
}) = _CreateFeed;