/* Options: Date: 2025-07-17 21:20:51 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: BeneficiaryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Beneficiary implements IConvertible { int? id; int? memberId; String? name; DateTime? birthdate; String? relationshipToMember; String? identificationNumber; int? allocation; Beneficiary({this.id,this.memberId,this.name,this.birthdate,this.relationshipToMember,this.identificationNumber,this.allocation}); Beneficiary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; memberId = json['memberId']; name = json['name']; birthdate = JsonConverters.fromJson(json['birthdate'],'DateTime',context!); relationshipToMember = json['relationshipToMember']; identificationNumber = json['identificationNumber']; allocation = json['allocation']; return this; } Map toJson() => { 'id': id, 'memberId': memberId, 'name': name, 'birthdate': JsonConverters.toJson(birthdate,'DateTime',context!), 'relationshipToMember': relationshipToMember, 'identificationNumber': identificationNumber, 'allocation': allocation }; getTypeName() => "Beneficiary"; TypeContext? context = _ctx; } class Beneficiary implements IId, ITimestamp, IConvertible { int? id; int? memberId; String? name; DateTime? birthdate; String? relationshipToMember; String? identificationNumber; int? allocation; DateTime? dateCreated; String? createdBy; DateTime? dateUpdated; String? updatedBy; Uint8List? timestamp; Beneficiary({this.id,this.memberId,this.name,this.birthdate,this.relationshipToMember,this.identificationNumber,this.allocation,this.dateCreated,this.createdBy,this.dateUpdated,this.updatedBy,this.timestamp}); Beneficiary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; memberId = json['memberId']; name = json['name']; birthdate = JsonConverters.fromJson(json['birthdate'],'DateTime',context!); relationshipToMember = json['relationshipToMember']; identificationNumber = json['identificationNumber']; allocation = json['allocation']; 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!); return this; } Map toJson() => { 'id': id, 'memberId': memberId, 'name': name, 'birthdate': JsonConverters.toJson(birthdate,'DateTime',context!), 'relationshipToMember': relationshipToMember, 'identificationNumber': identificationNumber, 'allocation': allocation, 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'createdBy': createdBy, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'updatedBy': updatedBy, 'timestamp': JsonConverters.toJson(timestamp,'Uint8List',context!) }; getTypeName() => "Beneficiary"; TypeContext? context = _ctx; } // @Route("/beneficiary/save", "POST") class BeneficiaryRequest implements IReturn, IConvertible { List? beneficiaries; int? memberId; String? createdBy; BeneficiaryRequest({this.beneficiaries,this.memberId,this.createdBy}); BeneficiaryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { beneficiaries = JsonConverters.fromJson(json['beneficiaries'],'List',context!); memberId = json['memberId']; createdBy = json['createdBy']; return this; } Map toJson() => { 'beneficiaries': JsonConverters.toJson(beneficiaries,'List',context!), 'memberId': memberId, 'createdBy': createdBy }; createResponse() => Uint8List(0); getResponseTypeName() => "Uint8List"; getTypeName() => "BeneficiaryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'Beneficiary': TypeInfo(TypeOf.Class, create:() => Beneficiary()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'BeneficiaryRequest': TypeInfo(TypeOf.Class, create:() => BeneficiaryRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });