mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-27 21:16:48 +00:00
Add endpoint for Company model
This commit is contained in:
parent
0bf02dad64
commit
784fae276b
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…
x
Reference in New Issue
Block a user