/* Options: Date: 2025-07-18 00:18:57 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: InvestmentAllocationDataRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class InvestmentAllocation implements IConvertible { int? id; int? memberId; String? fundId; double? currentBalancePercent; double? futureContributionPercent; double? currentBalanceFutureContributionPercent; DateTime? dateCreated; String? createdBy; DateTime? dateUpdated; String? updatedBy; InvestmentAllocation({this.id,this.memberId,this.fundId,this.currentBalancePercent,this.futureContributionPercent,this.currentBalanceFutureContributionPercent,this.dateCreated,this.createdBy,this.dateUpdated,this.updatedBy}); InvestmentAllocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; memberId = json['memberId']; fundId = json['fundId']; currentBalancePercent = JsonConverters.toDouble(json['currentBalancePercent']); futureContributionPercent = JsonConverters.toDouble(json['futureContributionPercent']); currentBalanceFutureContributionPercent = JsonConverters.toDouble(json['currentBalanceFutureContributionPercent']); dateCreated = JsonConverters.fromJson(json['dateCreated'],'DateTime',context!); createdBy = json['createdBy']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); updatedBy = json['updatedBy']; return this; } Map toJson() => { 'id': id, 'memberId': memberId, 'fundId': fundId, 'currentBalancePercent': currentBalancePercent, 'futureContributionPercent': futureContributionPercent, 'currentBalanceFutureContributionPercent': currentBalanceFutureContributionPercent, 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'createdBy': createdBy, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'updatedBy': updatedBy }; getTypeName() => "InvestmentAllocation"; TypeContext? context = _ctx; } class MemberContribution implements IConvertible { int? id; int? memberId; DateTime? choiceStartDate; DateTime? choiceEndDate; double? baseContributionPercent; double? voluntaryContributionPercent; double? incentiveContributionPercent; double? totalContributionPercent; double? baseContributionValue; double? voluntaryContributionValue; double? incentiveContributionValue; double? totalContributionValue; DateTime? dateCreated; String? createdBy; DateTime? dateUpdated; String? updatedBy; MemberContribution({this.id,this.memberId,this.choiceStartDate,this.choiceEndDate,this.baseContributionPercent,this.voluntaryContributionPercent,this.incentiveContributionPercent,this.totalContributionPercent,this.baseContributionValue,this.voluntaryContributionValue,this.incentiveContributionValue,this.totalContributionValue,this.dateCreated,this.createdBy,this.dateUpdated,this.updatedBy}); MemberContribution.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; memberId = json['memberId']; choiceStartDate = JsonConverters.fromJson(json['choiceStartDate'],'DateTime',context!); choiceEndDate = JsonConverters.fromJson(json['choiceEndDate'],'DateTime',context!); baseContributionPercent = JsonConverters.toDouble(json['baseContributionPercent']); voluntaryContributionPercent = JsonConverters.toDouble(json['voluntaryContributionPercent']); incentiveContributionPercent = JsonConverters.toDouble(json['incentiveContributionPercent']); totalContributionPercent = JsonConverters.toDouble(json['totalContributionPercent']); baseContributionValue = JsonConverters.toDouble(json['baseContributionValue']); voluntaryContributionValue = JsonConverters.toDouble(json['voluntaryContributionValue']); incentiveContributionValue = JsonConverters.toDouble(json['incentiveContributionValue']); totalContributionValue = JsonConverters.toDouble(json['totalContributionValue']); dateCreated = JsonConverters.fromJson(json['dateCreated'],'DateTime',context!); createdBy = json['createdBy']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); updatedBy = json['updatedBy']; return this; } Map toJson() => { 'id': id, 'memberId': memberId, 'choiceStartDate': JsonConverters.toJson(choiceStartDate,'DateTime',context!), 'choiceEndDate': JsonConverters.toJson(choiceEndDate,'DateTime',context!), 'baseContributionPercent': baseContributionPercent, 'voluntaryContributionPercent': voluntaryContributionPercent, 'incentiveContributionPercent': incentiveContributionPercent, 'totalContributionPercent': totalContributionPercent, 'baseContributionValue': baseContributionValue, 'voluntaryContributionValue': voluntaryContributionValue, 'incentiveContributionValue': incentiveContributionValue, 'totalContributionValue': totalContributionValue, 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'createdBy': createdBy, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'updatedBy': updatedBy }; getTypeName() => "MemberContribution"; TypeContext? context = _ctx; } class InvestmentAllocation implements IId, ITimestamp, IConvertible { int? id; int? memberId; String? fundId; double? currentBalancePercent; double? futureContributionPercent; double? currentBalanceFutureContributionPercent; DateTime? dateCreated; String? createdBy; DateTime? dateUpdated; String? updatedBy; Uint8List? timestamp; Member? member; InvestmentAllocation({this.id,this.memberId,this.fundId,this.currentBalancePercent,this.futureContributionPercent,this.currentBalanceFutureContributionPercent,this.dateCreated,this.createdBy,this.dateUpdated,this.updatedBy,this.timestamp,this.member}); InvestmentAllocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; memberId = json['memberId']; fundId = json['fundId']; currentBalancePercent = JsonConverters.toDouble(json['currentBalancePercent']); futureContributionPercent = JsonConverters.toDouble(json['futureContributionPercent']); currentBalanceFutureContributionPercent = JsonConverters.toDouble(json['currentBalanceFutureContributionPercent']); dateCreated = JsonConverters.fromJson(json['dateCreated'],'DateTime',context!); createdBy = json['createdBy']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); updatedBy = json['updatedBy']; timestamp = JsonConverters.fromJson(json['timestamp'],'Uint8List',context!); member = JsonConverters.fromJson(json['member'],'Member',context!); return this; } Map toJson() => { 'id': id, 'memberId': memberId, 'fundId': fundId, 'currentBalancePercent': currentBalancePercent, 'futureContributionPercent': futureContributionPercent, 'currentBalanceFutureContributionPercent': currentBalanceFutureContributionPercent, 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'createdBy': createdBy, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'updatedBy': updatedBy, 'timestamp': JsonConverters.toJson(timestamp,'Uint8List',context!), 'member': JsonConverters.toJson(member,'Member',context!) }; getTypeName() => "InvestmentAllocation"; TypeContext? context = _ctx; } class MemberContribution implements IId, ITimestamp, IConvertible { int? id; int? memberId; DateTime? choiceStartDate; DateTime? choiceEndDate; double? baseContributionPercent; double? voluntaryContributionPercent; double? incentiveContributionPercent; double? totalContributionPercent; double? baseContributionValue; double? voluntaryContributionValue; double? incentiveContributionValue; double? totalContributionValue; DateTime? dateCreated; String? createdBy; DateTime? dateUpdated; String? updatedBy; Uint8List? timestamp; Member? member; MemberContribution({this.id,this.memberId,this.choiceStartDate,this.choiceEndDate,this.baseContributionPercent,this.voluntaryContributionPercent,this.incentiveContributionPercent,this.totalContributionPercent,this.baseContributionValue,this.voluntaryContributionValue,this.incentiveContributionValue,this.totalContributionValue,this.dateCreated,this.createdBy,this.dateUpdated,this.updatedBy,this.timestamp,this.member}); MemberContribution.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; memberId = json['memberId']; choiceStartDate = JsonConverters.fromJson(json['choiceStartDate'],'DateTime',context!); choiceEndDate = JsonConverters.fromJson(json['choiceEndDate'],'DateTime',context!); baseContributionPercent = JsonConverters.toDouble(json['baseContributionPercent']); voluntaryContributionPercent = JsonConverters.toDouble(json['voluntaryContributionPercent']); incentiveContributionPercent = JsonConverters.toDouble(json['incentiveContributionPercent']); totalContributionPercent = JsonConverters.toDouble(json['totalContributionPercent']); baseContributionValue = JsonConverters.toDouble(json['baseContributionValue']); voluntaryContributionValue = JsonConverters.toDouble(json['voluntaryContributionValue']); incentiveContributionValue = JsonConverters.toDouble(json['incentiveContributionValue']); totalContributionValue = JsonConverters.toDouble(json['totalContributionValue']); dateCreated = JsonConverters.fromJson(json['dateCreated'],'DateTime',context!); createdBy = json['createdBy']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); updatedBy = json['updatedBy']; timestamp = JsonConverters.fromJson(json['timestamp'],'Uint8List',context!); member = JsonConverters.fromJson(json['member'],'Member',context!); return this; } Map toJson() => { 'id': id, 'memberId': memberId, 'choiceStartDate': JsonConverters.toJson(choiceStartDate,'DateTime',context!), 'choiceEndDate': JsonConverters.toJson(choiceEndDate,'DateTime',context!), 'baseContributionPercent': baseContributionPercent, 'voluntaryContributionPercent': voluntaryContributionPercent, 'incentiveContributionPercent': incentiveContributionPercent, 'totalContributionPercent': totalContributionPercent, 'baseContributionValue': baseContributionValue, 'voluntaryContributionValue': voluntaryContributionValue, 'incentiveContributionValue': incentiveContributionValue, 'totalContributionValue': totalContributionValue, 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'createdBy': createdBy, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'updatedBy': updatedBy, 'timestamp': JsonConverters.toJson(timestamp,'Uint8List',context!), 'member': JsonConverters.toJson(member,'Member',context!) }; getTypeName() => "MemberContribution"; TypeContext? context = _ctx; } // @Route("/investmentallocation/save", "POST") class InvestmentAllocationDataRequest implements IReturn, IConvertible { List? investmentAllocations; MemberContribution? memberContribution; int? memberId; String? createdBy; DateTime? dateOfBirthSpouse; DateTime? dateOfBirthYoungestChild; int? childrenCount; String? investmentStrategy; bool? isAdditionalInfoDisplayed; InvestmentAllocationDataRequest({this.investmentAllocations,this.memberContribution,this.memberId,this.createdBy,this.dateOfBirthSpouse,this.dateOfBirthYoungestChild,this.childrenCount,this.investmentStrategy,this.isAdditionalInfoDisplayed}); InvestmentAllocationDataRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { investmentAllocations = JsonConverters.fromJson(json['investmentAllocations'],'List',context!); memberContribution = JsonConverters.fromJson(json['memberContribution'],'MemberContribution',context!); memberId = json['memberId']; createdBy = json['createdBy']; dateOfBirthSpouse = JsonConverters.fromJson(json['dateOfBirthSpouse'],'DateTime',context!); dateOfBirthYoungestChild = JsonConverters.fromJson(json['dateOfBirthYoungestChild'],'DateTime',context!); childrenCount = json['childrenCount']; investmentStrategy = json['investmentStrategy']; isAdditionalInfoDisplayed = json['isAdditionalInfoDisplayed']; return this; } Map toJson() => { 'investmentAllocations': JsonConverters.toJson(investmentAllocations,'List',context!), 'memberContribution': JsonConverters.toJson(memberContribution,'MemberContribution',context!), 'memberId': memberId, 'createdBy': createdBy, 'dateOfBirthSpouse': JsonConverters.toJson(dateOfBirthSpouse,'DateTime',context!), 'dateOfBirthYoungestChild': JsonConverters.toJson(dateOfBirthYoungestChild,'DateTime',context!), 'childrenCount': childrenCount, 'investmentStrategy': investmentStrategy, 'isAdditionalInfoDisplayed': isAdditionalInfoDisplayed }; createResponse() => Uint8List(0); getResponseTypeName() => "Uint8List"; getTypeName() => "InvestmentAllocationDataRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'InvestmentAllocation': TypeInfo(TypeOf.Class, create:() => InvestmentAllocation()), 'MemberContribution': TypeInfo(TypeOf.Class, create:() => MemberContribution()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'Member': TypeInfo(TypeOf.Class, create:() => Member()), 'InvestmentAllocationDataRequest': TypeInfo(TypeOf.Class, create:() => InvestmentAllocationDataRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });