| POST | /v1/forms/go-sent/remove |
|---|
import 'package:servicestack/servicestack.dart';
class FormGoSentRow implements IConvertible
{
int? Id;
String? Name;
String? Position;
String? FirstSentAt;
String? FirstSentBy;
String? LastSentAt;
String? LastSentBy;
int? Times;
String? How;
String? Went;
String? Where;
bool? CanRemove;
FormGoSentRow({this.Id,this.Name,this.Position,this.FirstSentAt,this.FirstSentBy,this.LastSentAt,this.LastSentBy,this.Times,this.How,this.Went,this.Where,this.CanRemove});
FormGoSentRow.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Name = json['Name'];
Position = json['Position'];
FirstSentAt = json['FirstSentAt'];
FirstSentBy = json['FirstSentBy'];
LastSentAt = json['LastSentAt'];
LastSentBy = json['LastSentBy'];
Times = json['Times'];
How = json['How'];
Went = json['Went'];
Where = json['Where'];
CanRemove = json['CanRemove'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Name': Name,
'Position': Position,
'FirstSentAt': FirstSentAt,
'FirstSentBy': FirstSentBy,
'LastSentAt': LastSentAt,
'LastSentBy': LastSentBy,
'Times': Times,
'How': How,
'Went': Went,
'Where': Where,
'CanRemove': CanRemove
};
getTypeName() => "FormGoSentRow";
TypeContext? context = _ctx;
}
class FormGoSentResponse implements IConvertible
{
List<FormGoSentRow>? Rows = [];
String? Message;
ResponseStatus? ResponseStatus;
FormGoSentResponse({this.Rows,this.Message,this.ResponseStatus});
FormGoSentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Rows = JsonConverters.fromJson(json['Rows'],'List<FormGoSentRow>',context!);
Message = json['Message'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Rows': JsonConverters.toJson(Rows,'List<FormGoSentRow>',context!),
'Message': Message,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormGoSentResponse";
TypeContext? context = _ctx;
}
class FormGoSentRemoveRequest implements IConvertible
{
String? FormUID;
int? Worker;
FormGoSentRemoveRequest({this.FormUID,this.Worker});
FormGoSentRemoveRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FormUID = json['FormUID'];
Worker = json['Worker'];
return this;
}
Map<String, dynamic> toJson() => {
'FormUID': FormUID,
'Worker': Worker
};
getTypeName() => "FormGoSentRemoveRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormGoSentRow': TypeInfo(TypeOf.Class, create:() => FormGoSentRow()),
'FormGoSentResponse': TypeInfo(TypeOf.Class, create:() => FormGoSentResponse()),
'List<FormGoSentRow>': TypeInfo(TypeOf.Class, create:() => <FormGoSentRow>[]),
'FormGoSentRemoveRequest': TypeInfo(TypeOf.Class, create:() => FormGoSentRemoveRequest()),
});
Dart FormGoSentRemoveRequest 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/go-sent/remove HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"FormUID":"00000000000000000000000000000000","Worker":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Rows":[{"Id":0,"Name":"String","Position":"String","FirstSentAt":"String","FirstSentBy":"String","LastSentAt":"String","LastSentBy":"String","Times":0,"How":"String","Went":"String","Where":"String","CanRemove":false}],"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}