mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Some more value getters for Part model
This commit is contained in:
parent
06446998b2
commit
f84ba65f6c
2 changed files with 55 additions and 2 deletions
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue