mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	Add endpoint for Company model
This commit is contained in:
		
							
								
								
									
										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; | ||||||
|  |   } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user