import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class RegistrationProfileFieldValue implements IConvertible
{
String? DocumentFieldID;
String? Value;
String? ShadowValue;
bool? IsModifiedByUser;
RegistrationProfileFieldValue({this.DocumentFieldID,this.Value,this.ShadowValue,this.IsModifiedByUser});
RegistrationProfileFieldValue.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
DocumentFieldID = json['DocumentFieldID'];
Value = json['Value'];
ShadowValue = json['ShadowValue'];
IsModifiedByUser = json['IsModifiedByUser'];
return this;
}
Map<String, dynamic> toJson() => {
'DocumentFieldID': DocumentFieldID,
'Value': Value,
'ShadowValue': ShadowValue,
'IsModifiedByUser': IsModifiedByUser
};
getTypeName() => "RegistrationProfileFieldValue";
TypeContext? context = _ctx;
}
class GetRegistrationprofileFieldStates implements IConvertible
{
String? RegistrationprofileID;
String? DocumentID;
int? QueueDocumentID;
String? StandardDocumentID;
List<String>? RequestTriggeredByDependentDocumentFieldIds;
List<RegistrationProfileFieldValue>? CurrentRegistrationprofileFieldValues;
bool? IsOffice365Context;
bool? IsOpenedFromNonDMSLocation;
String? PidTag;
GetRegistrationprofileFieldStates({this.RegistrationprofileID,this.DocumentID,this.QueueDocumentID,this.StandardDocumentID,this.RequestTriggeredByDependentDocumentFieldIds,this.CurrentRegistrationprofileFieldValues,this.IsOffice365Context,this.IsOpenedFromNonDMSLocation,this.PidTag});
GetRegistrationprofileFieldStates.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RegistrationprofileID = json['RegistrationprofileID'];
DocumentID = json['DocumentID'];
QueueDocumentID = json['QueueDocumentID'];
StandardDocumentID = json['StandardDocumentID'];
RequestTriggeredByDependentDocumentFieldIds = JsonConverters.fromJson(json['RequestTriggeredByDependentDocumentFieldIds'],'List<String>',context!);
CurrentRegistrationprofileFieldValues = JsonConverters.fromJson(json['CurrentRegistrationprofileFieldValues'],'List<RegistrationProfileFieldValue>',context!);
IsOffice365Context = json['IsOffice365Context'];
IsOpenedFromNonDMSLocation = json['IsOpenedFromNonDMSLocation'];
PidTag = json['PidTag'];
return this;
}
Map<String, dynamic> toJson() => {
'RegistrationprofileID': RegistrationprofileID,
'DocumentID': DocumentID,
'QueueDocumentID': QueueDocumentID,
'StandardDocumentID': StandardDocumentID,
'RequestTriggeredByDependentDocumentFieldIds': JsonConverters.toJson(RequestTriggeredByDependentDocumentFieldIds,'List<String>',context!),
'CurrentRegistrationprofileFieldValues': JsonConverters.toJson(CurrentRegistrationprofileFieldValues,'List<RegistrationProfileFieldValue>',context!),
'IsOffice365Context': IsOffice365Context,
'IsOpenedFromNonDMSLocation': IsOpenedFromNonDMSLocation,
'PidTag': PidTag
};
getTypeName() => "GetRegistrationprofileFieldStates";
TypeContext? context = _ctx;
}
class GetMultiRegistrationProfileFieldStates implements IConvertible
{
List<GetRegistrationprofileFieldStates>? MultiRegistrationProfileFieldStates;
GetMultiRegistrationProfileFieldStates({this.MultiRegistrationProfileFieldStates});
GetMultiRegistrationProfileFieldStates.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
MultiRegistrationProfileFieldStates = JsonConverters.fromJson(json['MultiRegistrationProfileFieldStates'],'List<GetRegistrationprofileFieldStates>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'MultiRegistrationProfileFieldStates': JsonConverters.toJson(MultiRegistrationProfileFieldStates,'List<GetRegistrationprofileFieldStates>',context!)
};
getTypeName() => "GetMultiRegistrationProfileFieldStates";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: <String, TypeInfo> {
'RegistrationProfileFieldValue': TypeInfo(TypeOf.Class, create:() => RegistrationProfileFieldValue()),
'GetRegistrationprofileFieldStates': TypeInfo(TypeOf.Class, create:() => GetRegistrationprofileFieldStates()),
'List<RegistrationProfileFieldValue>': TypeInfo(TypeOf.Class, create:() => <RegistrationProfileFieldValue>[]),
'GetMultiRegistrationProfileFieldStates': TypeInfo(TypeOf.Class, create:() => GetMultiRegistrationProfileFieldStates()),
'List<GetRegistrationprofileFieldStates>': TypeInfo(TypeOf.Class, create:() => <GetRegistrationprofileFieldStates>[]),
});
Dart GetMultiRegistrationProfileFieldStates DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/GetMultiRegistrationProfileFieldStates HTTP/1.1
Host: doapigw.baasbv.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MultiRegistrationProfileFieldStates:
[
{
DocumentID: 00000000-0000-0000-0000-000000000000,
QueueDocumentID: 0,
StandardDocumentID: 00000000-0000-0000-0000-000000000000,
RequestTriggeredByDependentDocumentFieldIds:
[
00000000-0000-0000-0000-000000000000
],
CurrentRegistrationprofileFieldValues:
[
{
Value: String,
ShadowValue: String,
IsModifiedByUser: False
}
],
IsOffice365Context: False,
IsOpenedFromNonDMSLocation: False,
PidTag: String
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ { DocumentUploadID: 0, ReadOnly: False, Messages: [ { } ], ControlStates: [ { Required: False, Visible: False, Readonly: False } ] } ]