/* Options: Date: 2025-07-18 01:12:46 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: InvestmentRiskProfileSaveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class InvestmentProduct implements IConvertible { String? code; String? name; String? group; bool? isAssetClassFund; List? allocs; int? order; Map?>? allocationsDictionary; InvestmentProduct({this.code,this.name,this.group,this.isAssetClassFund,this.allocs,this.order,this.allocationsDictionary}); InvestmentProduct.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; name = json['name']; group = json['group']; isAssetClassFund = json['isAssetClassFund']; allocs = JsonConverters.fromJson(json['allocs'],'List',context!); order = json['order']; allocationsDictionary = JsonConverters.fromJson(json['allocationsDictionary'],'Map?>',context!); return this; } Map toJson() => { 'code': code, 'name': name, 'group': group, 'isAssetClassFund': isAssetClassFund, 'allocs': JsonConverters.toJson(allocs,'List',context!), 'order': order, 'allocationsDictionary': JsonConverters.toJson(allocationsDictionary,'Map?>',context!) }; getTypeName() => "InvestmentProduct"; TypeContext? context = _ctx; } class RecommendedRisk implements IConvertible { String? riskName; int? riskValue; String? riskId; RecommendedRisk({this.riskName,this.riskValue,this.riskId}); RecommendedRisk.fromJson(Map json) { fromMap(json); } fromMap(Map json) { riskName = json['riskName']; riskValue = json['riskValue']; riskId = json['riskId']; return this; } Map toJson() => { 'riskName': riskName, 'riskValue': riskValue, 'riskId': riskId }; getTypeName() => "RecommendedRisk"; TypeContext? context = _ctx; } class RiskModel implements IConvertible { RecommendedRisk? recommendedRisk; RecommendedRisk? chosenRisk; RiskModel({this.recommendedRisk,this.chosenRisk}); RiskModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { recommendedRisk = JsonConverters.fromJson(json['recommendedRisk'],'RecommendedRisk',context!); chosenRisk = JsonConverters.fromJson(json['chosenRisk'],'RecommendedRisk',context!); return this; } Map toJson() => { 'recommendedRisk': JsonConverters.toJson(recommendedRisk,'RecommendedRisk',context!), 'chosenRisk': JsonConverters.toJson(chosenRisk,'RecommendedRisk',context!) }; getTypeName() => "RiskModel"; TypeContext? context = _ctx; } class RecommendedProductType implements IConvertible { String? product; String? investmentProduct; double? score; int? productType; List? investmentProducts; RecommendedProductType({this.product,this.investmentProduct,this.score,this.productType,this.investmentProducts}); RecommendedProductType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { product = json['product']; investmentProduct = json['investmentProduct']; score = JsonConverters.toDouble(json['score']); productType = json['productType']; investmentProducts = JsonConverters.fromJson(json['investmentProducts'],'List',context!); return this; } Map toJson() => { 'product': product, 'investmentProduct': investmentProduct, 'score': score, 'productType': productType, 'investmentProducts': JsonConverters.toJson(investmentProducts,'List',context!) }; getTypeName() => "RecommendedProductType"; TypeContext? context = _ctx; } class RecommendedProducts implements IConvertible { RecommendedProductType? recommendedProduct; RecommendedProductType? chosenProduct; RecommendedProducts({this.recommendedProduct,this.chosenProduct}); RecommendedProducts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { recommendedProduct = JsonConverters.fromJson(json['recommendedProduct'],'RecommendedProductType',context!); chosenProduct = JsonConverters.fromJson(json['chosenProduct'],'RecommendedProductType',context!); return this; } Map toJson() => { 'recommendedProduct': JsonConverters.toJson(recommendedProduct,'RecommendedProductType',context!), 'chosenProduct': JsonConverters.toJson(chosenProduct,'RecommendedProductType',context!) }; getTypeName() => "RecommendedProducts"; TypeContext? context = _ctx; } class MatrixNoRisk implements IConvertible { String? minimumAllocationInStocks; String? maximumAllocationinStocks; MatrixNoRisk({this.minimumAllocationInStocks,this.maximumAllocationinStocks}); MatrixNoRisk.fromJson(Map json) { fromMap(json); } fromMap(Map json) { minimumAllocationInStocks = json['minimumAllocationInStocks']; maximumAllocationinStocks = json['maximumAllocationinStocks']; return this; } Map toJson() => { 'minimumAllocationInStocks': minimumAllocationInStocks, 'maximumAllocationinStocks': maximumAllocationinStocks }; getTypeName() => "MatrixNoRisk"; TypeContext? context = _ctx; } class RecommendedProductGraph implements IConvertible { List>? barGraphData; MatrixNoRisk? pieGraphInfo; RecommendedProductGraph({this.barGraphData,this.pieGraphInfo}); RecommendedProductGraph.fromJson(Map json) { fromMap(json); } fromMap(Map json) { barGraphData = JsonConverters.fromJson(json['barGraphData'],'List>',context!); pieGraphInfo = JsonConverters.fromJson(json['pieGraphInfo'],'MatrixNoRisk',context!); return this; } Map toJson() => { 'barGraphData': JsonConverters.toJson(barGraphData,'List>',context!), 'pieGraphInfo': JsonConverters.toJson(pieGraphInfo,'MatrixNoRisk',context!) }; getTypeName() => "RecommendedProductGraph"; TypeContext? context = _ctx; } class InvestmentProduct implements IConvertible { String? riskId; String? riskName; InvestmentProduct({this.riskId,this.riskName}); InvestmentProduct.fromJson(Map json) { fromMap(json); } fromMap(Map json) { riskId = json['riskId']; riskName = json['riskName']; return this; } Map toJson() => { 'riskId': riskId, 'riskName': riskName }; getTypeName() => "InvestmentProduct"; TypeContext? context = _ctx; } class InvestmentRiskProfileSaveResponse implements IConvertible { RiskModel? risk; RecommendedProducts? product; RecommendedProductGraph? recommendedProductGraph; InvestmentRiskProfileSaveResponse({this.risk,this.product,this.recommendedProductGraph}); InvestmentRiskProfileSaveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { risk = JsonConverters.fromJson(json['risk'],'RiskModel',context!); product = JsonConverters.fromJson(json['product'],'RecommendedProducts',context!); recommendedProductGraph = JsonConverters.fromJson(json['recommendedProductGraph'],'RecommendedProductGraph',context!); return this; } Map toJson() => { 'risk': JsonConverters.toJson(risk,'RiskModel',context!), 'product': JsonConverters.toJson(product,'RecommendedProducts',context!), 'recommendedProductGraph': JsonConverters.toJson(recommendedProductGraph,'RecommendedProductGraph',context!) }; getTypeName() => "InvestmentRiskProfileSaveResponse"; TypeContext? context = _ctx; } // @Route("/members/{EmployeeGuid}/investmentprofile", "POST") class InvestmentRiskProfileSaveRequest implements IReturn, IConvertible { String? employeeGuid; List? answers; InvestmentRiskProfileSaveRequest({this.employeeGuid,this.answers}); InvestmentRiskProfileSaveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { employeeGuid = json['employeeGuid']; answers = JsonConverters.fromJson(json['answers'],'List',context!); return this; } Map toJson() => { 'employeeGuid': employeeGuid, 'answers': JsonConverters.toJson(answers,'List',context!) }; createResponse() => InvestmentRiskProfileSaveResponse(); getResponseTypeName() => "InvestmentRiskProfileSaveResponse"; getTypeName() => "InvestmentRiskProfileSaveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'InvestmentProduct': TypeInfo(TypeOf.Class, create:() => InvestmentProduct()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'InvestmentProductAllocationsSpec': TypeInfo(TypeOf.Class, create:() => InvestmentProductAllocationsSpec()), 'Map?>': TypeInfo(TypeOf.Class, create:() => Map?>()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'RecommendedRisk': TypeInfo(TypeOf.Class, create:() => RecommendedRisk()), 'RiskModel': TypeInfo(TypeOf.Class, create:() => RiskModel()), 'RecommendedProductType': TypeInfo(TypeOf.Class, create:() => RecommendedProductType()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RecommendedProducts': TypeInfo(TypeOf.Class, create:() => RecommendedProducts()), 'MatrixNoRisk': TypeInfo(TypeOf.Class, create:() => MatrixNoRisk()), 'RecommendedProductGraph': TypeInfo(TypeOf.Class, create:() => RecommendedProductGraph()), 'List>': TypeInfo(TypeOf.Class, create:() => >[]), 'InvestmentRiskProfileSaveResponse': TypeInfo(TypeOf.Class, create:() => InvestmentRiskProfileSaveResponse()), 'InvestmentRiskProfileSaveRequest': TypeInfo(TypeOf.Class, create:() => InvestmentRiskProfileSaveRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QuestionnaireAnswers': TypeInfo(TypeOf.Class, create:() => QuestionnaireAnswers()), });