ModStickyPost constructor

  1. @ForceUtcDateTime()
  2. @ForceUtcDateTimeNullable()
  3. @JsonSerializable(fieldRename: FieldRename.snake)
const ModStickyPost({
  1. required int id,
  2. required int modPersonId,
  3. required int postId,
  4. bool? stickied,
  5. @JsonKey(name: 'when_') required DateTime when,
  6. required String instanceHost,
})

Implementation

@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory ModStickyPost({
  required int id,
  required int modPersonId,
  required int postId,
  bool? stickied,
  @JsonKey(name: 'when_') required DateTime when,
  required String instanceHost,
}) = _ModStickyPost;