/* Options: Date: 2025-10-30 00:07:45 Version: 8.80 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: VehicleSwapHistoricalRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class VehicleSwapHistorical implements IConvertible { String? Reference; String? OrderType; String? VehicleSwapGuid; String? OrderGuid; String? Showroom; String? GasUserId; String? OldCommissionNumber; String? NewCommissionNumber; String? RequestReason; bool? SentToCesar; int? StatusId; String? Status; DateTime? SwapCreated; DateTime? SwapUpdated; VehicleSwapHistorical({this.Reference,this.OrderType,this.VehicleSwapGuid,this.OrderGuid,this.Showroom,this.GasUserId,this.OldCommissionNumber,this.NewCommissionNumber,this.RequestReason,this.SentToCesar,this.StatusId,this.Status,this.SwapCreated,this.SwapUpdated}); VehicleSwapHistorical.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Reference = json['Reference']; OrderType = json['OrderType']; VehicleSwapGuid = json['VehicleSwapGuid']; OrderGuid = json['OrderGuid']; Showroom = json['Showroom']; GasUserId = json['GasUserId']; OldCommissionNumber = json['OldCommissionNumber']; NewCommissionNumber = json['NewCommissionNumber']; RequestReason = json['RequestReason']; SentToCesar = json['SentToCesar']; StatusId = json['StatusId']; Status = json['Status']; SwapCreated = JsonConverters.fromJson(json['SwapCreated'],'DateTime',context!); SwapUpdated = JsonConverters.fromJson(json['SwapUpdated'],'DateTime',context!); return this; } Map toJson() => { 'Reference': Reference, 'OrderType': OrderType, 'VehicleSwapGuid': VehicleSwapGuid, 'OrderGuid': OrderGuid, 'Showroom': Showroom, 'GasUserId': GasUserId, 'OldCommissionNumber': OldCommissionNumber, 'NewCommissionNumber': NewCommissionNumber, 'RequestReason': RequestReason, 'SentToCesar': SentToCesar, 'StatusId': StatusId, 'Status': Status, 'SwapCreated': JsonConverters.toJson(SwapCreated,'DateTime',context!), 'SwapUpdated': JsonConverters.toJson(SwapUpdated,'DateTime',context!) }; getTypeName() => "VehicleSwapHistorical"; TypeContext? context = _ctx; } class VehicleSwapHistoricalResponse implements IConvertible { List? HistoricalVehicleSwaps = []; VehicleSwapHistoricalResponse({this.HistoricalVehicleSwaps}); VehicleSwapHistoricalResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { HistoricalVehicleSwaps = JsonConverters.fromJson(json['HistoricalVehicleSwaps'],'List',context!); return this; } Map toJson() => { 'HistoricalVehicleSwaps': JsonConverters.toJson(HistoricalVehicleSwaps,'List',context!) }; getTypeName() => "VehicleSwapHistoricalResponse"; TypeContext? context = _ctx; } // @Route("/v1/VehicleSwap/Historical", "GET") class VehicleSwapHistoricalRequest implements IReturn, IPost, IConvertible { VehicleSwapHistoricalRequest(); VehicleSwapHistoricalRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => VehicleSwapHistoricalResponse(); getResponseTypeName() => "VehicleSwapHistoricalResponse"; getTypeName() => "VehicleSwapHistoricalRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: { 'VehicleSwapHistorical': TypeInfo(TypeOf.Class, create:() => VehicleSwapHistorical()), 'VehicleSwapHistoricalResponse': TypeInfo(TypeOf.Class, create:() => VehicleSwapHistoricalResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'VehicleSwapHistoricalRequest': TypeInfo(TypeOf.Class, create:() => VehicleSwapHistoricalRequest()), });