/* Options: Date: 2025-07-17 00:00:07 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: ClaimReq.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class HttpResult implements IConvertible { String? responseText; Uint8List? responseStream; FileInfo? fileInfo; IVirtualFile? virtualFile; String? contentType; Map? headers; List? cookies; String? eTag; Duration? age; Duration? maxAge; DateTime? expires; DateTime? lastModified; CacheControl? cacheControl; Func? resultScope; bool? allowsPartialResponse; Map? options; int? status; HttpStatusCode? statusCode; String? statusDescription; dynamic? response; IContentTypeWriter? responseFilter; IRequest? requestContext; String? view; String? template; int? paddingLength; bool? isPartialRequest; HttpResult({this.responseText,this.responseStream,this.fileInfo,this.virtualFile,this.contentType,this.headers,this.cookies,this.eTag,this.age,this.maxAge,this.expires,this.lastModified,this.cacheControl,this.resultScope,this.allowsPartialResponse,this.options,this.status,this.statusCode,this.statusDescription,this.response,this.responseFilter,this.requestContext,this.view,this.template,this.paddingLength,this.isPartialRequest}); HttpResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseText = json['responseText']; responseStream = JsonConverters.fromJson(json['responseStream'],'Uint8List',context!); fileInfo = JsonConverters.fromJson(json['fileInfo'],'FileInfo',context!); virtualFile = JsonConverters.fromJson(json['virtualFile'],'IVirtualFile',context!); contentType = json['contentType']; headers = JsonConverters.toStringMap(json['headers']); cookies = JsonConverters.fromJson(json['cookies'],'List',context!); eTag = json['eTag']; age = JsonConverters.fromJson(json['age'],'Duration',context!); maxAge = JsonConverters.fromJson(json['maxAge'],'Duration',context!); expires = JsonConverters.fromJson(json['expires'],'DateTime',context!); lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); cacheControl = JsonConverters.fromJson(json['cacheControl'],'CacheControl',context!); resultScope = JsonConverters.fromJson(json['resultScope'],'Func',context!); allowsPartialResponse = json['allowsPartialResponse']; options = JsonConverters.fromJson(json['options'],'Map',context!); status = json['status']; statusCode = JsonConverters.fromJson(json['statusCode'],'HttpStatusCode',context!); statusDescription = json['statusDescription']; response = JsonConverters.fromJson(json['response'],'dynamic',context!); responseFilter = JsonConverters.fromJson(json['responseFilter'],'IContentTypeWriter',context!); requestContext = JsonConverters.fromJson(json['requestContext'],'IRequest',context!); view = json['view']; template = json['template']; paddingLength = json['paddingLength']; isPartialRequest = json['isPartialRequest']; return this; } Map toJson() => { 'responseText': responseText, 'responseStream': JsonConverters.toJson(responseStream,'Uint8List',context!), 'fileInfo': JsonConverters.toJson(fileInfo,'FileInfo',context!), 'virtualFile': JsonConverters.toJson(virtualFile,'IVirtualFile',context!), 'contentType': contentType, 'headers': headers, 'cookies': JsonConverters.toJson(cookies,'List',context!), 'eTag': eTag, 'age': JsonConverters.toJson(age,'Duration',context!), 'maxAge': JsonConverters.toJson(maxAge,'Duration',context!), 'expires': JsonConverters.toJson(expires,'DateTime',context!), 'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!), 'cacheControl': JsonConverters.toJson(cacheControl,'CacheControl',context!), 'resultScope': JsonConverters.toJson(resultScope,'Func',context!), 'allowsPartialResponse': allowsPartialResponse, 'options': JsonConverters.toJson(options,'Map',context!), 'status': status, 'statusCode': JsonConverters.toJson(statusCode,'HttpStatusCode',context!), 'statusDescription': statusDescription, 'response': JsonConverters.toJson(response,'dynamic',context!), 'responseFilter': JsonConverters.toJson(responseFilter,'IContentTypeWriter',context!), 'requestContext': JsonConverters.toJson(requestContext,'IRequest',context!), 'view': view, 'template': template, 'paddingLength': paddingLength, 'isPartialRequest': isPartialRequest }; getTypeName() => "HttpResult"; TypeContext? context = _ctx; } class ClaimResponse implements IConvertible { HttpResult? result; ClaimResponse({this.result}); ClaimResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'HttpResult',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'HttpResult',context!) }; getTypeName() => "ClaimResponse"; TypeContext? context = _ctx; } // @Route("/members/claim", "POST") class ClaimReq implements IReturn, IConvertible { String? employerId; String? memberId; String? type; String? description; ClaimReq({this.employerId,this.memberId,this.type,this.description}); ClaimReq.fromJson(Map json) { fromMap(json); } fromMap(Map json) { employerId = json['employerId']; memberId = json['memberId']; type = json['type']; description = json['description']; return this; } Map toJson() => { 'employerId': employerId, 'memberId': memberId, 'type': type, 'description': description }; createResponse() => ClaimResponse(); getResponseTypeName() => "ClaimResponse"; getTypeName() => "ClaimReq"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'HttpResult': TypeInfo(TypeOf.Class, create:() => HttpResult()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'FileInfo': TypeInfo(TypeOf.Class, create:() => FileInfo()), 'IVirtualFile': TypeInfo(TypeOf.Class, create:() => IVirtualFile()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Cookie': TypeInfo(TypeOf.Class, create:() => Cookie()), 'CacheControl': TypeInfo(TypeOf.Class, create:() => CacheControl()), 'Func': TypeInfo(TypeOf.Class, create:() => Func()), 'IDisposable': TypeInfo(TypeOf.Class, create:() => IDisposable()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'IContentTypeWriter': TypeInfo(TypeOf.Class, create:() => IContentTypeWriter()), 'IRequest': TypeInfo(TypeOf.Class, create:() => IRequest()), 'ClaimResponse': TypeInfo(TypeOf.Class, create:() => ClaimResponse()), 'ClaimReq': TypeInfo(TypeOf.Class, create:() => ClaimReq()), });