/* Options: Date: 2025-07-18 00:03:21 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://hcbtas-q-albamfs-api.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ValidateNemIdRequestModel.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum CertificateType { Poces, Moces, Voces, Foces, } class SignProperty implements IConvertible { String? name; String? value; SignProperty({this.name,this.value}); SignProperty.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; value = json['value']; return this; } Map toJson() => { 'name': name, 'value': value }; getTypeName() => "SignProperty"; TypeContext? context = _ctx; } enum LogonType { Otp, KeyFile, Unknown, } class AuthenticationInfo implements IConvertible { String? pid; String? dn; String? commonName; String? rid; String? cpr; String? cvr; String? company; String? email; String? signedXml; String? issuerDn; bool? isYouthCert; CertificateType? certificateType; String? subjectSerialNumber; List? signProperties; String? rememberUserIdToken; LogonType? logonType; String? certificateSerialNumber; Uint8List? clientCertificate; String? authorizedToRepresent; AuthenticationInfo({this.pid,this.dn,this.commonName,this.rid,this.cpr,this.cvr,this.company,this.email,this.signedXml,this.issuerDn,this.isYouthCert,this.certificateType,this.subjectSerialNumber,this.signProperties,this.rememberUserIdToken,this.logonType,this.certificateSerialNumber,this.clientCertificate,this.authorizedToRepresent}); AuthenticationInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { pid = json['pid']; dn = json['dn']; commonName = json['commonName']; rid = json['rid']; cpr = json['cpr']; cvr = json['cvr']; company = json['company']; email = json['email']; signedXml = json['signedXml']; issuerDn = json['issuerDn']; isYouthCert = json['isYouthCert']; certificateType = JsonConverters.fromJson(json['certificateType'],'CertificateType',context!); subjectSerialNumber = json['subjectSerialNumber']; signProperties = JsonConverters.fromJson(json['signProperties'],'List',context!); rememberUserIdToken = json['rememberUserIdToken']; logonType = JsonConverters.fromJson(json['logonType'],'LogonType',context!); certificateSerialNumber = json['certificateSerialNumber']; clientCertificate = JsonConverters.fromJson(json['clientCertificate'],'Uint8List',context!); authorizedToRepresent = json['authorizedToRepresent']; return this; } Map toJson() => { 'pid': pid, 'dn': dn, 'commonName': commonName, 'rid': rid, 'cpr': cpr, 'cvr': cvr, 'company': company, 'email': email, 'signedXml': signedXml, 'issuerDn': issuerDn, 'isYouthCert': isYouthCert, 'certificateType': JsonConverters.toJson(certificateType,'CertificateType',context!), 'subjectSerialNumber': subjectSerialNumber, 'signProperties': JsonConverters.toJson(signProperties,'List',context!), 'rememberUserIdToken': rememberUserIdToken, 'logonType': JsonConverters.toJson(logonType,'LogonType',context!), 'certificateSerialNumber': certificateSerialNumber, 'clientCertificate': JsonConverters.toJson(clientCertificate,'Uint8List',context!), 'authorizedToRepresent': authorizedToRepresent }; getTypeName() => "AuthenticationInfo"; TypeContext? context = _ctx; } enum ClientFlow { NemID, NemIDSignature, NemIDKeyFile, NemIDKeyFileSignature, NL3Signature, Invalid, LoadTest, } enum FlowStatus { Ok, UserCancel, ClientFlowError, FlowError, ValidationError, } abstract class Body { Body(); Body.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "Body"; TypeContext? context = _ctx; } abstract class FlowMessage extends Body { String? timestamp; String? transactionIdentifier; FlowMessage({this.timestamp,this.transactionIdentifier}); FlowMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); timestamp = json['timestamp']; transactionIdentifier = json['transactionIdentifier']; return this; } Map toJson() => super.toJson()..addAll({ 'timestamp': timestamp, 'transactionIdentifier': transactionIdentifier }); getTypeName() => "FlowMessage"; TypeContext? context = _ctx; } class FlowResult extends FlowMessage implements IConvertible { ClientFlow? clientFlow; FlowStatus? status; bool? isSuccess; String? message; String? userMessage; String? flowErrorCode; FlowResult({this.clientFlow,this.status,this.isSuccess,this.message,this.userMessage,this.flowErrorCode}); FlowResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); clientFlow = JsonConverters.fromJson(json['clientFlow'],'ClientFlow',context!); status = JsonConverters.fromJson(json['status'],'FlowStatus',context!); isSuccess = json['isSuccess']; message = json['message']; userMessage = json['userMessage']; flowErrorCode = json['flowErrorCode']; return this; } Map toJson() => super.toJson()..addAll({ 'clientFlow': JsonConverters.toJson(clientFlow,'ClientFlow',context!), 'status': JsonConverters.toJson(status,'FlowStatus',context!), 'isSuccess': isSuccess, 'message': message, 'userMessage': userMessage, 'flowErrorCode': flowErrorCode }); getTypeName() => "FlowResult"; TypeContext? context = _ctx; } class NemIDFlowResult extends FlowResult implements IConvertible { AuthenticationInfo? authenticationInfo; NemIDFlowResult({this.authenticationInfo}); NemIDFlowResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); authenticationInfo = JsonConverters.fromJson(json['authenticationInfo'],'AuthenticationInfo',context!); return this; } Map toJson() => super.toJson()..addAll({ 'authenticationInfo': JsonConverters.toJson(authenticationInfo,'AuthenticationInfo',context!) }); getTypeName() => "NemIDFlowResult"; TypeContext? context = _ctx; } // @Route("/nemidvalidatelogin", "GET") class ValidateNemIdRequestModel implements IReturn, IConvertible { ValidateNemIdRequestModel(); ValidateNemIdRequestModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => NemIDFlowResult(); getResponseTypeName() => "NemIDFlowResult"; getTypeName() => "ValidateNemIdRequestModel"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'CertificateType': TypeInfo(TypeOf.Enum, enumValues:CertificateType.values), 'SignProperty': TypeInfo(TypeOf.Class, create:() => SignProperty()), 'LogonType': TypeInfo(TypeOf.Enum, enumValues:LogonType.values), 'AuthenticationInfo': TypeInfo(TypeOf.Class, create:() => AuthenticationInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'ClientFlow': TypeInfo(TypeOf.Enum, enumValues:ClientFlow.values), 'FlowStatus': TypeInfo(TypeOf.Enum, enumValues:FlowStatus.values), 'Body': TypeInfo(TypeOf.AbstractClass), 'FlowMessage': TypeInfo(TypeOf.AbstractClass), 'FlowResult': TypeInfo(TypeOf.Class, create:() => FlowResult()), 'NemIDFlowResult': TypeInfo(TypeOf.Class, create:() => NemIDFlowResult()), 'ValidateNemIdRequestModel': TypeInfo(TypeOf.Class, create:() => ValidateNemIdRequestModel()), });