mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Add endpoint for Company model
This commit is contained in:
parent
0bf02dad64
commit
784fae276b
1 changed files with 20 additions and 0 deletions
20
lib/inventree/company.dart
Normal file
20
lib/inventree/company.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'model.dart';
|
||||
|
||||
|
||||
class InvenTreeCompany extends InvenTreeModel {
|
||||
@override
|
||||
String URL = "company/";
|
||||
|
||||
InvenTreeCompany() : super();
|
||||
|
||||
InvenTreeCompany.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@override
|
||||
InvenTreeModel createFromJson(Map<String, dynamic> json) {
|
||||
var company = InvenTreeCompany.fromJson(json);
|
||||
|
||||
return company;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue