SchedulingConfig constructor

  1. @JsonSerializable.new(includeIfNull: false)
const SchedulingConfig({
  1. @Default.new('tools.ozone.moderation.scheduleAction#schedulingConfig') String $type,
  2. DateTime? executeAt,
  3. DateTime? executeAfter,
  4. DateTime? executeUntil,
  5. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory SchedulingConfig({
  @Default('tools.ozone.moderation.scheduleAction#schedulingConfig')
  String $type,

  /// Exact time to execute the action
  DateTime? executeAt,

  /// Earliest time to execute the action (for randomized scheduling)
  DateTime? executeAfter,

  /// Latest time to execute the action (for randomized scheduling)
  DateTime? executeUntil,

  Map<String, dynamic>? $unknown,
}) = _SchedulingConfig;