SavePost constructor

  1. @JsonSerializable.new(includeIfNull: false)
const SavePost({
  1. @JsonKey.new(name: 'post_id') required int postId,
  2. required bool save,
  3. required String auth,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory SavePost({
  /// The post to save/unsave.
  @JsonKey(name: 'post_id') required int postId,

  /// True to save, false to unsave.
  required bool save,

  /// Auth token.
  required String auth,
}) = _SavePost;