mirror of
https://github.com/inventree/inventree-app.git
synced 2025-12-15 08:38:12 +00:00
Some more value getters for Part model
This commit is contained in:
@@ -43,6 +43,8 @@ class InvenTreeModel {
|
||||
|
||||
int get parentId => jsondata['parent'] ?? -1;
|
||||
|
||||
String get link => jsondata['URL'] ?? '';
|
||||
|
||||
// Create a new object from JSON data (not a constructor!)
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user