| POST | /v1/forms/inbox-views |
|---|
import 'package:servicestack/servicestack.dart';
class FormInboxViewItem implements IConvertible
{
String? ViewUID;
String? FormUID;
String? Name;
String? FiltersJson;
FormInboxViewItem({this.ViewUID,this.FormUID,this.Name,this.FiltersJson});
FormInboxViewItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ViewUID = json['ViewUID'];
FormUID = json['FormUID'];
Name = json['Name'];
FiltersJson = json['FiltersJson'];
return this;
}
Map<String, dynamic> toJson() => {
'ViewUID': ViewUID,
'FormUID': FormUID,
'Name': Name,
'FiltersJson': FiltersJson
};
getTypeName() => "FormInboxViewItem";
TypeContext? context = _ctx;
}
class FormInboxViewsResponse implements IConvertible
{
List<FormInboxViewItem>? Views = [];
FormInboxViewItem? Saved;
ResponseStatus? ResponseStatus;
FormInboxViewsResponse({this.Views,this.Saved,this.ResponseStatus});
FormInboxViewsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Views = JsonConverters.fromJson(json['Views'],'List<FormInboxViewItem>',context!);
Saved = JsonConverters.fromJson(json['Saved'],'FormInboxViewItem',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Views': JsonConverters.toJson(Views,'List<FormInboxViewItem>',context!),
'Saved': JsonConverters.toJson(Saved,'FormInboxViewItem',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormInboxViewsResponse";
TypeContext? context = _ctx;
}
class FormInboxViewSaveRequest implements IConvertible
{
String? FormUID;
String? Name;
String? FiltersJson;
FormInboxViewSaveRequest({this.FormUID,this.Name,this.FiltersJson});
FormInboxViewSaveRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FormUID = json['FormUID'];
Name = json['Name'];
FiltersJson = json['FiltersJson'];
return this;
}
Map<String, dynamic> toJson() => {
'FormUID': FormUID,
'Name': Name,
'FiltersJson': FiltersJson
};
getTypeName() => "FormInboxViewSaveRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormInboxViewItem': TypeInfo(TypeOf.Class, create:() => FormInboxViewItem()),
'FormInboxViewsResponse': TypeInfo(TypeOf.Class, create:() => FormInboxViewsResponse()),
'List<FormInboxViewItem>': TypeInfo(TypeOf.Class, create:() => <FormInboxViewItem>[]),
'FormInboxViewSaveRequest': TypeInfo(TypeOf.Class, create:() => FormInboxViewSaveRequest()),
});
Dart FormInboxViewSaveRequest 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.
POST /v1/forms/inbox-views HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"FormUID":"00000000000000000000000000000000","Name":"String","FiltersJson":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Views":[{"ViewUID":"00000000000000000000000000000000","FormUID":"00000000000000000000000000000000","Name":"String","FiltersJson":"String"}],"Saved":{"ViewUID":"00000000000000000000000000000000","FormUID":"00000000000000000000000000000000","Name":"String","FiltersJson":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}