| GET,OPTIONS | /v1/forms/office |
|---|
import 'package:servicestack/servicestack.dart';
class FormOfficeApp implements IConvertible
{
String? FormUID;
String? Name;
String? Noun;
String? DefaultBranchId;
FormOfficeApp({this.FormUID,this.Name,this.Noun,this.DefaultBranchId});
FormOfficeApp.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FormUID = json['FormUID'];
Name = json['Name'];
Noun = json['Noun'];
DefaultBranchId = json['DefaultBranchId'];
return this;
}
Map<String, dynamic> toJson() => {
'FormUID': FormUID,
'Name': Name,
'Noun': Noun,
'DefaultBranchId': DefaultBranchId
};
getTypeName() => "FormOfficeApp";
TypeContext? context = _ctx;
}
class FormInboxCount implements IConvertible
{
String? V;
String? L;
int? N;
FormInboxCount({this.V,this.L,this.N});
FormInboxCount.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
V = json['V'];
L = json['L'];
N = json['N'];
return this;
}
Map<String, dynamic> toJson() => {
'V': V,
'L': L,
'N': N
};
getTypeName() => "FormInboxCount";
TypeContext? context = _ctx;
}
class FormOfficeDraftRow implements IConvertible
{
String? SubmissionUID;
String? FormUID;
String? FormName;
String? ForName;
String? BranchName;
int? ContactId;
int? Page;
int? Pages;
String? SavedBy;
String? SavedAt;
FormOfficeDraftRow({this.SubmissionUID,this.FormUID,this.FormName,this.ForName,this.BranchName,this.ContactId,this.Page,this.Pages,this.SavedBy,this.SavedAt});
FormOfficeDraftRow.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SubmissionUID = json['SubmissionUID'];
FormUID = json['FormUID'];
FormName = json['FormName'];
ForName = json['ForName'];
BranchName = json['BranchName'];
ContactId = json['ContactId'];
Page = json['Page'];
Pages = json['Pages'];
SavedBy = json['SavedBy'];
SavedAt = json['SavedAt'];
return this;
}
Map<String, dynamic> toJson() => {
'SubmissionUID': SubmissionUID,
'FormUID': FormUID,
'FormName': FormName,
'ForName': ForName,
'BranchName': BranchName,
'ContactId': ContactId,
'Page': Page,
'Pages': Pages,
'SavedBy': SavedBy,
'SavedAt': SavedAt
};
getTypeName() => "FormOfficeDraftRow";
TypeContext? context = _ctx;
}
class FormOfficeOfferedResponse implements IConvertible
{
List<FormOfficeApp>? Apps = [];
List<FormInboxCount>? Branches = [];
List<FormOfficeDraftRow>? Drafts = [];
bool? CanSearchContacts;
ResponseStatus? ResponseStatus;
FormOfficeOfferedResponse({this.Apps,this.Branches,this.Drafts,this.CanSearchContacts,this.ResponseStatus});
FormOfficeOfferedResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Apps = JsonConverters.fromJson(json['Apps'],'List<FormOfficeApp>',context!);
Branches = JsonConverters.fromJson(json['Branches'],'List<FormInboxCount>',context!);
Drafts = JsonConverters.fromJson(json['Drafts'],'List<FormOfficeDraftRow>',context!);
CanSearchContacts = json['CanSearchContacts'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Apps': JsonConverters.toJson(Apps,'List<FormOfficeApp>',context!),
'Branches': JsonConverters.toJson(Branches,'List<FormInboxCount>',context!),
'Drafts': JsonConverters.toJson(Drafts,'List<FormOfficeDraftRow>',context!),
'CanSearchContacts': CanSearchContacts,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormOfficeOfferedResponse";
TypeContext? context = _ctx;
}
class FormOfficeOfferedRequest implements IConvertible
{
String? FormUID;
FormOfficeOfferedRequest({this.FormUID});
FormOfficeOfferedRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FormUID = json['FormUID'];
return this;
}
Map<String, dynamic> toJson() => {
'FormUID': FormUID
};
getTypeName() => "FormOfficeOfferedRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormOfficeApp': TypeInfo(TypeOf.Class, create:() => FormOfficeApp()),
'FormInboxCount': TypeInfo(TypeOf.Class, create:() => FormInboxCount()),
'FormOfficeDraftRow': TypeInfo(TypeOf.Class, create:() => FormOfficeDraftRow()),
'FormOfficeOfferedResponse': TypeInfo(TypeOf.Class, create:() => FormOfficeOfferedResponse()),
'List<FormOfficeApp>': TypeInfo(TypeOf.Class, create:() => <FormOfficeApp>[]),
'List<FormInboxCount>': TypeInfo(TypeOf.Class, create:() => <FormInboxCount>[]),
'List<FormOfficeDraftRow>': TypeInfo(TypeOf.Class, create:() => <FormOfficeDraftRow>[]),
'FormOfficeOfferedRequest': TypeInfo(TypeOf.Class, create:() => FormOfficeOfferedRequest()),
});
Dart FormOfficeOfferedRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/office HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Apps":[{"FormUID":"String","Name":"String","Noun":"String","DefaultBranchId":"String"}],"Branches":[{"V":"String","L":"String","N":0}],"Drafts":[{"SubmissionUID":"String","FormUID":"String","FormName":"String","ForName":"String","BranchName":"String","ContactId":0,"Page":0,"Pages":0,"SavedBy":"String","SavedAt":"String"}],"CanSearchContacts":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}