| GET | /v1/formfill/draft/{Token} |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class FormFillDraftResponse implements IConvertible
{
String? AppJson;
String? TenantName;
String? Today;
String? Who;
String? AnswersJson;
int? Page;
int? Rev;
String? Lang;
ResponseStatus? ResponseStatus;
FormFillDraftResponse({this.AppJson,this.TenantName,this.Today,this.Who,this.AnswersJson,this.Page,this.Rev,this.Lang,this.ResponseStatus});
FormFillDraftResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AppJson = json['AppJson'];
TenantName = json['TenantName'];
Today = json['Today'];
Who = json['Who'];
AnswersJson = json['AnswersJson'];
Page = json['Page'];
Rev = json['Rev'];
Lang = json['Lang'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'AppJson': AppJson,
'TenantName': TenantName,
'Today': Today,
'Who': Who,
'AnswersJson': AnswersJson,
'Page': Page,
'Rev': Rev,
'Lang': Lang,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormFillDraftResponse";
TypeContext? context = _ctx;
}
class FormFillDraftRequest implements IConvertible
{
String? Token;
FormFillDraftRequest({this.Token});
FormFillDraftRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Token = json['Token'];
return this;
}
Map<String, dynamic> toJson() => {
'Token': Token
};
getTypeName() => "FormFillDraftRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormFillDraftResponse': TypeInfo(TypeOf.Class, create:() => FormFillDraftResponse()),
'FormFillDraftRequest': TypeInfo(TypeOf.Class, create:() => FormFillDraftRequest()),
});
Dart FormFillDraftRequest 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/formfill/draft/{Token} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"AppJson":"String","TenantName":"String","Today":"String","Who":"String","AnswersJson":"String","Page":0,"Rev":0,"Lang":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}