tasks property
List<BackgroundTaskReport> ?
get
tasks
Implementation
List<BackgroundTaskReport>? get tasks {
return (_json['tasks'] as List?)
?.map((e) => BackgroundTaskReport.fromJson(e as Map<String, dynamic>))
.toList();
}
set
tasks
(List<BackgroundTaskReport> ? value)
Implementation
set tasks(List<BackgroundTaskReport>? value) {
if (value == null) {
_json.remove('tasks');
} else {
_json['tasks'] = value.map((e) => e.toJson()).toList();
}
}