toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'removeAllFilesFromDownloads',
    if (extra != null) '@extra': extra,
    'only_active': only_active,
    'only_completed': only_completed,
    'delete_from_cache': delete_from_cache
  };
}