ScheduledStatus constructor

  1. @JsonSerializable(includeIfNull: false)
const ScheduledStatus({
  1. required String id,
  2. required ScheduledStatusParams params,
  3. required List<MediaAttachment> mediaAttachments,
  4. required DateTime scheduledAt,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ScheduledStatus({
  /// ID of the scheduled status in the database.
  required String id,

  /// The parameters that were used when scheduling the status, to be used
  /// when the status is posted.
  required ScheduledStatusParams params,

  /// Media that will be attached when the status is posted.
  required List<MediaAttachment> mediaAttachments,

  /// The timestamp for when the status will be posted.
  required DateTime scheduledAt,
}) = _ScheduledStatus;