ScheduledTasksConfig class

Represents the configuration for scheduled tasks.

This class encapsulates settings related to scheduled background tasks, including a list of tasks to run and their respective intervals. It provides methods for converting between JSON and Dart objects for data persistence and serialization.

Constructors

ScheduledTasksConfig({required List<String> tasks, required int syncInterval, required int cleanupInterval})
Creates a ScheduledTasksConfig instance.
ScheduledTasksConfig.fromJson(Map<String, dynamic> json)
Creates a ScheduledTasksConfig instance from a JSON map.
factory

Properties

cleanupInterval int
The interval (in milliseconds) at which cleanup tasks should run.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syncInterval int
The interval (in milliseconds) at which synchronization tasks should run.
final
tasks List<String>
A list of task names or identifiers.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this ScheduledTasksConfig instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited