/* Options: Date: 2024-10-18 04:27:51 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RegisterDocument.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RegistrationValue implements IConvertible { String? Key; String? Value; String? ShadowValue; RegistrationValue({this.Key,this.Value,this.ShadowValue}); RegistrationValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Value = json['Value']; ShadowValue = json['ShadowValue']; return this; } Map toJson() => { 'Key': Key, 'Value': Value, 'ShadowValue': ShadowValue }; getTypeName() => "RegistrationValue"; TypeContext? context = _ctx; } class Transition implements IConvertible { String? ID; String? Reason; DateTime? DelayDate; String? DelayReason; List? UserIDs; List? GroupIDs; Transition({this.ID,this.Reason,this.DelayDate,this.DelayReason,this.UserIDs,this.GroupIDs}); Transition.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Reason = json['Reason']; DelayDate = JsonConverters.fromJson(json['DelayDate'],'DateTime',context!); DelayReason = json['DelayReason']; UserIDs = JsonConverters.fromJson(json['UserIDs'],'List',context!); GroupIDs = JsonConverters.fromJson(json['GroupIDs'],'List',context!); return this; } Map toJson() => { 'ID': ID, 'Reason': Reason, 'DelayDate': JsonConverters.toJson(DelayDate,'DateTime',context!), 'DelayReason': DelayReason, 'UserIDs': JsonConverters.toJson(UserIDs,'List',context!), 'GroupIDs': JsonConverters.toJson(GroupIDs,'List',context!) }; getTypeName() => "Transition"; TypeContext? context = _ctx; } class Process implements IConvertible { int? ID; String? Title; String? Description; String? Note; String? Coordinator; bool? Urgent; List? Transitions; Process({this.ID,this.Title,this.Description,this.Note,this.Coordinator,this.Urgent,this.Transitions}); Process.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Title = json['Title']; Description = json['Description']; Note = json['Note']; Coordinator = json['Coordinator']; Urgent = json['Urgent']; Transitions = JsonConverters.fromJson(json['Transitions'],'List',context!); return this; } Map toJson() => { 'ID': ID, 'Title': Title, 'Description': Description, 'Note': Note, 'Coordinator': Coordinator, 'Urgent': Urgent, 'Transitions': JsonConverters.toJson(Transitions,'List',context!) }; getTypeName() => "Process"; TypeContext? context = _ctx; } class RegisterDocumentResponse implements IConvertible { bool? IsSucces; String? DocumentId; List? ErrorMessages; String? Ooxml; /** * Is it a corporate identity document? */ // @ApiMember(Description="Is it a corporate identity document?", IsRequired=true) bool? IsCorporateIdentity; Map? DocumentVariables; RegisterDocumentResponse({this.IsSucces,this.DocumentId,this.ErrorMessages,this.Ooxml,this.IsCorporateIdentity,this.DocumentVariables}); RegisterDocumentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IsSucces = json['IsSucces']; DocumentId = json['DocumentId']; ErrorMessages = JsonConverters.fromJson(json['ErrorMessages'],'List',context!); Ooxml = json['Ooxml']; IsCorporateIdentity = json['IsCorporateIdentity']; DocumentVariables = JsonConverters.fromJson(json['DocumentVariables'],'Map',context!); return this; } Map toJson() => { 'IsSucces': IsSucces, 'DocumentId': DocumentId, 'ErrorMessages': JsonConverters.toJson(ErrorMessages,'List',context!), 'Ooxml': Ooxml, 'IsCorporateIdentity': IsCorporateIdentity, 'DocumentVariables': JsonConverters.toJson(DocumentVariables,'Map',context!) }; getTypeName() => "RegisterDocumentResponse"; TypeContext? context = _ctx; } class RegisterDocument implements IReturn, IConvertible { String? RegistrationProfileID; List? Values; List? Processes; String? DocumentUploadId; String? DocumentId; String? StandardDocumentID; bool? HasUnsavedChangesInDocument; bool? IsOpenedFromNonDMSLocation; RegisterDocument({this.RegistrationProfileID,this.Values,this.Processes,this.DocumentUploadId,this.DocumentId,this.StandardDocumentID,this.HasUnsavedChangesInDocument,this.IsOpenedFromNonDMSLocation}); RegisterDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RegistrationProfileID = json['RegistrationProfileID']; Values = JsonConverters.fromJson(json['Values'],'List',context!); Processes = JsonConverters.fromJson(json['Processes'],'List',context!); DocumentUploadId = json['DocumentUploadId']; DocumentId = json['DocumentId']; StandardDocumentID = json['StandardDocumentID']; HasUnsavedChangesInDocument = json['HasUnsavedChangesInDocument']; IsOpenedFromNonDMSLocation = json['IsOpenedFromNonDMSLocation']; return this; } Map toJson() => { 'RegistrationProfileID': RegistrationProfileID, 'Values': JsonConverters.toJson(Values,'List',context!), 'Processes': JsonConverters.toJson(Processes,'List',context!), 'DocumentUploadId': DocumentUploadId, 'DocumentId': DocumentId, 'StandardDocumentID': StandardDocumentID, 'HasUnsavedChangesInDocument': HasUnsavedChangesInDocument, 'IsOpenedFromNonDMSLocation': IsOpenedFromNonDMSLocation }; createResponse() => RegisterDocumentResponse(); getResponseTypeName() => "RegisterDocumentResponse"; getTypeName() => "RegisterDocument"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'RegistrationValue': TypeInfo(TypeOf.Class, create:() => RegistrationValue()), 'Transition': TypeInfo(TypeOf.Class, create:() => Transition()), 'Process': TypeInfo(TypeOf.Class, create:() => Process()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RegisterDocumentResponse': TypeInfo(TypeOf.Class, create:() => RegisterDocumentResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'RegisterDocument': TypeInfo(TypeOf.Class, create:() => RegisterDocument()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });