mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 02:07:57 -06:00
20 lines
400 B
Dart
20 lines
400 B
Dart
import 'package:paperless_mobile/core/type/types.dart';
|
|
|
|
class BulkEditAction {
|
|
final List<int> documents;
|
|
final String _method;
|
|
final Map<String, dynamic> parameters;
|
|
|
|
BulkEditAction.delete(this.documents)
|
|
: _method = 'delete',
|
|
parameters = {};
|
|
|
|
JSON toJson() {
|
|
return {
|
|
'documents': documents,
|
|
'method': _method,
|
|
'parameters': parameters,
|
|
};
|
|
}
|
|
}
|