SavePost constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const SavePost({
  1. required int postId,
  2. required bool save,
  3. required String auth,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false)
const factory SavePost({
  required int postId,
  required bool save,
  required String auth,
}) = _SavePost;