mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Data introspection for Company model
This commit is contained in:
parent
7304484369
commit
1faf0fc575
1 changed files with 10 additions and 0 deletions
|
|
@ -12,6 +12,16 @@ class InvenTreeCompany extends InvenTreeModel {
|
||||||
|
|
||||||
String get image => jsondata['image'] ?? '';
|
String get image => jsondata['image'] ?? '';
|
||||||
|
|
||||||
|
String get website => jsondata['website'] ?? '';
|
||||||
|
|
||||||
|
String get phone => jsondata['phone'] ?? '';
|
||||||
|
|
||||||
|
String get email => jsondata['email'] ?? '';
|
||||||
|
|
||||||
|
bool get isSupplier => jsondata['is_supplier'] ?? false;
|
||||||
|
|
||||||
|
bool get isCustomer => jsondata['is_customer'] ?? false;
|
||||||
|
|
||||||
InvenTreeCompany.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
InvenTreeCompany.fromJson(Map<String, dynamic> json) : super.fromJson(json) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue