PrivateMessage constructor
- @ForceUtcDateTime()
- @ForceUtcDateTimeNullable()
- @JsonSerializable(fieldRename: FieldRename.snake)
const
PrivateMessage(
{ - required int id,
- required int creatorId,
- required int recipientId,
- required String content,
- required bool deleted,
- required bool read,
- required DateTime published,
- DateTime? updated,
- required String apId,
- required bool local,
- required String instanceHost,
})
Implementation
@ForceUtcDateTime()
@ForceUtcDateTimeNullable()
@JsonSerializable(fieldRename: FieldRename.snake)
const factory PrivateMessage({
required int id,
required int creatorId,
required int recipientId,
required String content,
required bool deleted,
required bool read,
required DateTime published,
DateTime? updated,
required String apId,
required bool local,
required String instanceHost,
}) = _PrivateMessage;