mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 22:07:55 -06:00
Initial commit
This commit is contained in:
19
lib/features/documents/model/bulk_edit.model.dart
Normal file
19
lib/features/documents/model/bulk_edit.model.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
import 'package:flutter_paperless_mobile/core/type/json.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,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user