toJson method
Returns the data fields of ForegroundTaskOptions in JSON format.
Implementation
Map<String, dynamic> toJson() {
return {
'interval': interval,
'autoRunOnBoot': autoRunOnBoot,
'allowWifiLock': allowWifiLock,
};
}
Returns the data fields of ForegroundTaskOptions in JSON format.
Map<String, dynamic> toJson() {
return {
'interval': interval,
'autoRunOnBoot': autoRunOnBoot,
'allowWifiLock': allowWifiLock,
};
}