GET | /v1/MappedMarketingCodeJobs | Get list of Mapped Marketing Code jobs | Get list of Mapped Marketing Code jobs |
---|
import 'package:servicestack/servicestack.dart';
class GetMarketingCodesJobsRequest implements IGet, IConvertible
{
GetMarketingCodesJobsRequest();
GetMarketingCodesJobsRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetMarketingCodesJobsRequest";
TypeContext? context = _ctx;
}
class DataProcessJob implements IConvertible
{
int? id;
String? gasId;
String? dateCreated;
int? processedRecords;
int? status;
String? statusName;
String? fileName;
DataProcessJob({this.id,this.gasId,this.dateCreated,this.processedRecords,this.status,this.statusName,this.fileName});
DataProcessJob.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
gasId = json['gasId'];
dateCreated = json['dateCreated'];
processedRecords = json['processedRecords'];
status = json['status'];
statusName = json['statusName'];
fileName = json['fileName'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'gasId': gasId,
'dateCreated': dateCreated,
'processedRecords': processedRecords,
'status': status,
'statusName': statusName,
'fileName': fileName
};
getTypeName() => "DataProcessJob";
TypeContext? context = _ctx;
}
class GetDataProcessJobsResponse implements IConvertible
{
List<DataProcessJob>? dataProcesses = [];
GetDataProcessJobsResponse({this.dataProcesses});
GetDataProcessJobsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
dataProcesses = JsonConverters.fromJson(json['dataProcesses'],'List<DataProcessJob>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'dataProcesses': JsonConverters.toJson(dataProcesses,'List<DataProcessJob>',context!)
};
getTypeName() => "GetDataProcessJobsResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'GetMarketingCodesJobsRequest': TypeInfo(TypeOf.Class, create:() => GetMarketingCodesJobsRequest()),
'DataProcessJob': TypeInfo(TypeOf.Class, create:() => DataProcessJob()),
'GetDataProcessJobsResponse': TypeInfo(TypeOf.Class, create:() => GetDataProcessJobsResponse()),
'List<DataProcessJob>': TypeInfo(TypeOf.Class, create:() => <DataProcessJob>[]),
});
Dart GetMarketingCodesJobsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/MappedMarketingCodeJobs HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"dataProcesses":[{"id":0,"gasId":"String","dateCreated":"String","processedRecords":0,"status":0,"statusName":"String","fileName":"String"}]}