import "package:inventree/inventree/model.dart"; /* * Class representing the ProjectCode database model */ class InvenTreeProjectCode extends InvenTreeModel { InvenTreeProjectCode() : super(); InvenTreeProjectCode.fromJson(Map json) : super.fromJson(json); @override InvenTreeModel createFromJson(Map json) => InvenTreeProjectCode.fromJson(json); @override String get URL => "project-code/"; static const String MODEL_TYPE = "projectcode"; @override Map> formFields() { return {"code": {}, "description": {}}; } String get code => getString("code"); }