mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Refactor createFromJson function
This commit is contained in:
parent
061586e258
commit
0a1b44c8dc
6 changed files with 21 additions and 73 deletions
|
|
@ -12,9 +12,7 @@ class InvenTreeBomItem extends InvenTreeModel {
|
|||
InvenTreeBomItem.fromJson(Map<String, dynamic> json) : super.fromJson(json);
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
return InvenTreeBomItem.fromJson(json);
|
||||
}
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) => InvenTreeBomItem.fromJson(json);
|
||||
|
||||
@override
|
||||
String get URL => "bom/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue