LockPost constructor

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

Implementation

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