/* Options: Date: 2025-05-05 18:24:17 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://prod-api-agency-orch-mb-dhc.rapp-customers.co.uk //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ValidateBackOrderBulkAllocationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BackOrderAllocation implements IConvertible { int? Row; String? Comm; String? BackOrder; BackOrderAllocation({this.Row,this.Comm,this.BackOrder}); BackOrderAllocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Row = json['Row']; Comm = json['Comm']; BackOrder = json['BackOrder']; return this; } Map toJson() => { 'Row': Row, 'Comm': Comm, 'BackOrder': BackOrder }; getTypeName() => "BackOrderAllocation"; TypeContext? context = _ctx; } class InvalidBackOrderAllocation extends BackOrderAllocation implements IConvertible { String? ValidationMessage; InvalidBackOrderAllocation({this.ValidationMessage}); InvalidBackOrderAllocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ValidationMessage = json['ValidationMessage']; return this; } Map toJson() => super.toJson()..addAll({ 'ValidationMessage': ValidationMessage }); getTypeName() => "InvalidBackOrderAllocation"; TypeContext? context = _ctx; } class BackOrderBulkAllocationVehicles implements IConvertible { int? TotalVehicles; int? ValidVehicles; int? WarningVehicles; int? InvalidVehicles; List? Valid = []; List? Warning = []; List? Invalid = []; BackOrderBulkAllocationVehicles({this.TotalVehicles,this.ValidVehicles,this.WarningVehicles,this.InvalidVehicles,this.Valid,this.Warning,this.Invalid}); BackOrderBulkAllocationVehicles.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TotalVehicles = json['TotalVehicles']; ValidVehicles = json['ValidVehicles']; WarningVehicles = json['WarningVehicles']; InvalidVehicles = json['InvalidVehicles']; Valid = JsonConverters.fromJson(json['Valid'],'List',context!); Warning = JsonConverters.fromJson(json['Warning'],'List',context!); Invalid = JsonConverters.fromJson(json['Invalid'],'List',context!); return this; } Map toJson() => { 'TotalVehicles': TotalVehicles, 'ValidVehicles': ValidVehicles, 'WarningVehicles': WarningVehicles, 'InvalidVehicles': InvalidVehicles, 'Valid': JsonConverters.toJson(Valid,'List',context!), 'Warning': JsonConverters.toJson(Warning,'List',context!), 'Invalid': JsonConverters.toJson(Invalid,'List',context!) }; getTypeName() => "BackOrderBulkAllocationVehicles"; TypeContext? context = _ctx; } class BackOrderBulkAllocationResponse implements IConvertible { String? Message; BackOrderBulkAllocationVehicles? Vehicles; bool? Successful; BackOrderBulkAllocationResponse({this.Message,this.Vehicles,this.Successful}); BackOrderBulkAllocationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Message = json['Message']; Vehicles = JsonConverters.fromJson(json['Vehicles'],'BackOrderBulkAllocationVehicles',context!); Successful = json['Successful']; return this; } Map toJson() => { 'Message': Message, 'Vehicles': JsonConverters.toJson(Vehicles,'BackOrderBulkAllocationVehicles',context!), 'Successful': Successful }; getTypeName() => "BackOrderBulkAllocationResponse"; TypeContext? context = _ctx; } // @Route("/v1/BackOrder/ValidateBulkAllocations", "POST") class ValidateBackOrderBulkAllocationsRequest implements IReturn, IConvertible, IPost { ValidateBackOrderBulkAllocationsRequest(); ValidateBackOrderBulkAllocationsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => BackOrderBulkAllocationResponse(); getResponseTypeName() => "BackOrderBulkAllocationResponse"; getTypeName() => "ValidateBackOrderBulkAllocationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: { 'BackOrderAllocation': TypeInfo(TypeOf.Class, create:() => BackOrderAllocation()), 'InvalidBackOrderAllocation': TypeInfo(TypeOf.Class, create:() => InvalidBackOrderAllocation()), 'BackOrderBulkAllocationVehicles': TypeInfo(TypeOf.Class, create:() => BackOrderBulkAllocationVehicles()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BackOrderBulkAllocationResponse': TypeInfo(TypeOf.Class, create:() => BackOrderBulkAllocationResponse()), 'ValidateBackOrderBulkAllocationsRequest': TypeInfo(TypeOf.Class, create:() => ValidateBackOrderBulkAllocationsRequest()), });