/* Options: Date: 2025-12-06 08:39:59 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: InventoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Inventory implements IConvertible { int? InventoryID; int? EquipmentID; DateTime? RecordCreatedDate; DateTime? DeletedDate; int? Quantity; String? InventoryLocation; String? Notess; String? CreatedByUID; Inventory({this.InventoryID,this.EquipmentID,this.RecordCreatedDate,this.DeletedDate,this.Quantity,this.InventoryLocation,this.Notess,this.CreatedByUID}); Inventory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InventoryID = json['InventoryID']; EquipmentID = json['EquipmentID']; RecordCreatedDate = JsonConverters.fromJson(json['RecordCreatedDate'],'DateTime',context!); DeletedDate = JsonConverters.fromJson(json['DeletedDate'],'DateTime',context!); Quantity = json['Quantity']; InventoryLocation = json['InventoryLocation']; Notess = json['Notess']; CreatedByUID = json['CreatedByUID']; return this; } Map toJson() => { 'InventoryID': InventoryID, 'EquipmentID': EquipmentID, 'RecordCreatedDate': JsonConverters.toJson(RecordCreatedDate,'DateTime',context!), 'DeletedDate': JsonConverters.toJson(DeletedDate,'DateTime',context!), 'Quantity': Quantity, 'InventoryLocation': InventoryLocation, 'Notess': Notess, 'CreatedByUID': CreatedByUID }; getTypeName() => "Inventory"; TypeContext? context = _ctx; } class InventoryResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Inventory = []; InventoryResponse({this.ResponseStatus,this.Inventory}); InventoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Inventory = JsonConverters.fromJson(json['Inventory'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Inventory': JsonConverters.toJson(Inventory,'List',context!) }; getTypeName() => "InventoryResponse"; TypeContext? context = _ctx; } // @Route("/v1/Inventory", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Inventory/{InventoryID}", "GET,POST,PUT,DELETE,OPTIONS") class InventoryRequest implements IReturn, IConvertible, IPost { int? InventoryID; List? Inventory = []; InventoryRequest({this.InventoryID,this.Inventory}); InventoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InventoryID = json['InventoryID']; Inventory = JsonConverters.fromJson(json['Inventory'],'List',context!); return this; } Map toJson() => { 'InventoryID': InventoryID, 'Inventory': JsonConverters.toJson(Inventory,'List',context!) }; createResponse() => InventoryResponse(); getResponseTypeName() => "InventoryResponse"; getTypeName() => "InventoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Inventory': TypeInfo(TypeOf.Class, create:() => Inventory()), 'InventoryResponse': TypeInfo(TypeOf.Class, create:() => InventoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'InventoryRequest': TypeInfo(TypeOf.Class, create:() => InventoryRequest()), });