2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Defines a class for representing an InvenTreePlugin instance

This commit is contained in:
Oliver Walters
2022-03-25 22:25:27 +11:00
parent 0c7f5d7fe7
commit 0c9c7b2a68
2 changed files with 21 additions and 6 deletions

View File

@ -500,6 +500,20 @@ class InvenTreeModel {
}
/**
* Class representing a single plugin instance
*/
class InvenTreePlugin extends InvenTreeModel {
InvenTreePlugin() : super();
InvenTreePlugin.fromJson(Map<String, dynamic> json) : super.fromJson(json);
@override
String get URL => "plugin/";
}
class InvenTreeAttachment extends InvenTreeModel {
// Class representing an "attachment" file
InvenTreeAttachment() : super();