| GET | /campaign/inbox/form |
|---|
import 'package:servicestack/servicestack.dart';
class CampaignActionFile implements IConvertible
{
String? Name;
String? FileType;
String? FileSize;
String? Extension;
String? UploadUrl;
CampaignActionFile({this.Name,this.FileType,this.FileSize,this.Extension,this.UploadUrl});
CampaignActionFile.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
FileType = json['FileType'];
FileSize = json['FileSize'];
Extension = json['Extension'];
UploadUrl = json['UploadUrl'];
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'FileType': FileType,
'FileSize': FileSize,
'Extension': Extension,
'UploadUrl': UploadUrl
};
getTypeName() => "CampaignActionFile";
TypeContext? context = _ctx;
}
class CampaignActionFormResults implements IConvertible
{
String? CustomFormResults;
String? Comments;
List<CampaignActionFile>? CampaignActionFiles;
CampaignActionFormResults({this.CustomFormResults,this.Comments,this.CampaignActionFiles});
CampaignActionFormResults.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CustomFormResults = json['CustomFormResults'];
Comments = json['Comments'];
CampaignActionFiles = JsonConverters.fromJson(json['CampaignActionFiles'],'List<CampaignActionFile>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'CustomFormResults': CustomFormResults,
'Comments': Comments,
'CampaignActionFiles': JsonConverters.toJson(CampaignActionFiles,'List<CampaignActionFile>',context!)
};
getTypeName() => "CampaignActionFormResults";
TypeContext? context = _ctx;
}
class GetCampaignActionClientFormDataResponse implements IConvertible
{
CampaignActionFormResults? FormMetaResponses;
ResponseStatus? ResponseStatus;
GetCampaignActionClientFormDataResponse({this.FormMetaResponses,this.ResponseStatus});
GetCampaignActionClientFormDataResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FormMetaResponses = JsonConverters.fromJson(json['FormMetaResponses'],'CampaignActionFormResults',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'FormMetaResponses': JsonConverters.toJson(FormMetaResponses,'CampaignActionFormResults',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "GetCampaignActionClientFormDataResponse";
TypeContext? context = _ctx;
}
class GetCampaignActionClientFormData implements IConvertible
{
int? Id;
String? CommsGuid;
int? CampaignActionsRequestsId;
GetCampaignActionClientFormData({this.Id,this.CommsGuid,this.CampaignActionsRequestsId});
GetCampaignActionClientFormData.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
CommsGuid = json['CommsGuid'];
CampaignActionsRequestsId = json['CampaignActionsRequestsId'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'CommsGuid': CommsGuid,
'CampaignActionsRequestsId': CampaignActionsRequestsId
};
getTypeName() => "GetCampaignActionClientFormData";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'CampaignActionFile': TypeInfo(TypeOf.Class, create:() => CampaignActionFile()),
'CampaignActionFormResults': TypeInfo(TypeOf.Class, create:() => CampaignActionFormResults()),
'List<CampaignActionFile>': TypeInfo(TypeOf.Class, create:() => <CampaignActionFile>[]),
'GetCampaignActionClientFormDataResponse': TypeInfo(TypeOf.Class, create:() => GetCampaignActionClientFormDataResponse()),
'GetCampaignActionClientFormData': TypeInfo(TypeOf.Class, create:() => GetCampaignActionClientFormData()),
});
Dart GetCampaignActionClientFormData 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 /campaign/inbox/form HTTP/1.1 Host: duengageapi.uat.scadsoftware.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"FormMetaResponses":{"CustomFormResults":"String","Comments":"String","CampaignActionFiles":[{"Name":"String","FileType":"String","FileSize":"String","Extension":"String","UploadUrl":"String"}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}