GET | /v1/Vehicle/SecuredOffline | Get all secured vehicles which are offline | Get audit of all secured vehicles which are currently offline, including the user who secured it, the date and the reason. |
---|
import 'package:servicestack/servicestack.dart';
class SecuredOfflineVehicle implements IConvertible
{
String? commissionNumber;
String? vin;
String? salesDescription;
String? model;
String? colour;
String? fuelType;
String? upholstery;
String? account;
String? gasId;
String? secureReason;
String? secureDate;
String? offlineDate;
SecuredOfflineVehicle({this.commissionNumber,this.vin,this.salesDescription,this.model,this.colour,this.fuelType,this.upholstery,this.account,this.gasId,this.secureReason,this.secureDate,this.offlineDate});
SecuredOfflineVehicle.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
commissionNumber = json['commissionNumber'];
vin = json['vin'];
salesDescription = json['salesDescription'];
model = json['model'];
colour = json['colour'];
fuelType = json['fuelType'];
upholstery = json['upholstery'];
account = json['account'];
gasId = json['gasId'];
secureReason = json['secureReason'];
secureDate = json['secureDate'];
offlineDate = json['offlineDate'];
return this;
}
Map<String, dynamic> toJson() => {
'commissionNumber': commissionNumber,
'vin': vin,
'salesDescription': salesDescription,
'model': model,
'colour': colour,
'fuelType': fuelType,
'upholstery': upholstery,
'account': account,
'gasId': gasId,
'secureReason': secureReason,
'secureDate': secureDate,
'offlineDate': offlineDate
};
getTypeName() => "SecuredOfflineVehicle";
TypeContext? context = _ctx;
}
class SecuredOfflineVehicleResponse implements IConvertible
{
List<SecuredOfflineVehicle>? vehicles = [];
SecuredOfflineVehicleResponse({this.vehicles});
SecuredOfflineVehicleResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
vehicles = JsonConverters.fromJson(json['vehicles'],'List<SecuredOfflineVehicle>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'vehicles': JsonConverters.toJson(vehicles,'List<SecuredOfflineVehicle>',context!)
};
getTypeName() => "SecuredOfflineVehicleResponse";
TypeContext? context = _ctx;
}
class SecuredOfflineVehicleRequest implements IConvertible
{
SecuredOfflineVehicleRequest();
SecuredOfflineVehicleRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "SecuredOfflineVehicleRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'SecuredOfflineVehicle': TypeInfo(TypeOf.Class, create:() => SecuredOfflineVehicle()),
'SecuredOfflineVehicleResponse': TypeInfo(TypeOf.Class, create:() => SecuredOfflineVehicleResponse()),
'List<SecuredOfflineVehicle>': TypeInfo(TypeOf.Class, create:() => <SecuredOfflineVehicle>[]),
'SecuredOfflineVehicleRequest': TypeInfo(TypeOf.Class, create:() => SecuredOfflineVehicleRequest()),
});
Dart SecuredOfflineVehicleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Vehicle/SecuredOffline HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {Unable to show example output for type 'SecuredOfflineVehicleResponse' using the custom 'other' filter}Cannot dynamically create an instance of type 'Mercedes.VehicleManagement.API.Shared.Clients.Vehicle.SecuredOfflineVehicleResponse'. Reason: No parameterless constructor defined.