/* Options: Date: 2026-07-28 12:50:23 Version: 10.06 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateVehicleV2Request.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum ActionType { Insert, Update, Offline, NoAction, Error, } class ProcessResult implements IConvertible { bool success; bool rejected; TVehicle? mappedVehicle; ActionType action; ProcessResult({this.success,this.rejected,this.mappedVehicle,this.action}); ProcessResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; rejected = json['rejected']; mappedVehicle = JsonConverters.fromJson(json['mappedVehicle'],'TVehicle',context!); action = JsonConverters.fromJson(json['action'],'ActionType',context!); return this; } Map toJson() => { 'success': success, 'rejected': rejected, 'mappedVehicle': JsonConverters.toJson(mappedVehicle,'TVehicle',context!), 'action': JsonConverters.toJson(action,'ActionType',context!) }; getTypeName() => "ProcessResult<$TVehicle>"; TypeContext? context = _ctx; } // @Route("/v2/{VehicleType}/Vehicle/UpdateVehicle", "POST") class UpdateVehicleV2Request implements IReturn>, IPost, IConvertible { String vehicleIdentifier = ""; String vin = ""; String vehicleType = ""; UpdateVehicleV2Request({this.vehicleIdentifier,this.vin,this.vehicleType}); UpdateVehicleV2Request.fromJson(Map json) { fromMap(json); } fromMap(Map json) { vehicleIdentifier = json['vehicleIdentifier']; vin = json['vin']; vehicleType = json['vehicleType']; return this; } Map toJson() => { 'vehicleIdentifier': vehicleIdentifier, 'vin': vin, 'vehicleType': vehicleType }; createResponse() => ProcessResult(); getResponseTypeName() => "ProcessResult"; getTypeName() => "UpdateVehicleV2Request"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: { 'ActionType': TypeInfo(TypeOf.Enum, enumValues:ActionType.values), 'ProcessResult': TypeInfo(TypeOf.GenericDef,create:() => ProcessResult()), 'ProcessResult': TypeInfo(TypeOf.Class, create:() => ProcessResult()), 'OpenSearchVehicle': TypeInfo(TypeOf.Class, create:() => OpenSearchVehicle()), 'UpdateVehicleV2Request': TypeInfo(TypeOf.Class, create:() => UpdateVehicleV2Request()), });