CreatePost constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const CreatePost({
  1. required String name,
  2. String? url,
  3. String? body,
  4. bool? nsfw,
  5. required int communityId,
  6. required String auth,
  7. String? honeypot,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory CreatePost({
  required String name,
  String? url,
  String? body,
  bool? nsfw,
  required int communityId,
  required String auth,
  String? honeypot,
}) = _CreatePost;