/* Options: Date: 2025-07-18 00:22:01 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: VotingPollRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class VotingPollAnswer implements IConvertible { String? code; int? configurationVersionId; int? memberId; int? clientId; String? vote; String? name; String? selectionInfo; DateTime? dateVoted; DateTime? startDate; DateTime? endDate; VotingPollAnswer({this.code,this.configurationVersionId,this.memberId,this.clientId,this.vote,this.name,this.selectionInfo,this.dateVoted,this.startDate,this.endDate}); VotingPollAnswer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; configurationVersionId = json['configurationVersionId']; memberId = json['memberId']; clientId = json['clientId']; vote = json['vote']; name = json['name']; selectionInfo = json['selectionInfo']; dateVoted = JsonConverters.fromJson(json['dateVoted'],'DateTime',context!); startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); return this; } Map toJson() => { 'code': code, 'configurationVersionId': configurationVersionId, 'memberId': memberId, 'clientId': clientId, 'vote': vote, 'name': name, 'selectionInfo': selectionInfo, 'dateVoted': JsonConverters.toJson(dateVoted,'DateTime',context!), 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!) }; getTypeName() => "VotingPollAnswer"; TypeContext? context = _ctx; } class VotingPollAnswer implements IId, ITimestamp, IConvertible { int? id; int? configurationVersionId; int? memberId; int? clientId; String? code; String? vote; String? name; String? selectionInfo; DateTime? dateVoted; DateTime? startDate; DateTime? endDate; DateTime? dateCreated; DateTime? dateUpdated; String? createdBy; String? updatedBy; Uint8List? timestamp; Member? member; VotingPollAnswer({this.id,this.configurationVersionId,this.memberId,this.clientId,this.code,this.vote,this.name,this.selectionInfo,this.dateVoted,this.startDate,this.endDate,this.dateCreated,this.dateUpdated,this.createdBy,this.updatedBy,this.timestamp,this.member}); VotingPollAnswer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; configurationVersionId = json['configurationVersionId']; memberId = json['memberId']; clientId = json['clientId']; code = json['code']; vote = json['vote']; name = json['name']; selectionInfo = json['selectionInfo']; dateVoted = JsonConverters.fromJson(json['dateVoted'],'DateTime',context!); startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); dateCreated = JsonConverters.fromJson(json['dateCreated'],'DateTime',context!); dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); createdBy = json['createdBy']; updatedBy = json['updatedBy']; timestamp = JsonConverters.fromJson(json['timestamp'],'Uint8List',context!); member = JsonConverters.fromJson(json['member'],'Member',context!); return this; } Map toJson() => { 'id': id, 'configurationVersionId': configurationVersionId, 'memberId': memberId, 'clientId': clientId, 'code': code, 'vote': vote, 'name': name, 'selectionInfo': selectionInfo, 'dateVoted': JsonConverters.toJson(dateVoted,'DateTime',context!), 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!), 'dateCreated': JsonConverters.toJson(dateCreated,'DateTime',context!), 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'createdBy': createdBy, 'updatedBy': updatedBy, 'timestamp': JsonConverters.toJson(timestamp,'Uint8List',context!), 'member': JsonConverters.toJson(member,'Member',context!) }; getTypeName() => "VotingPollAnswer"; TypeContext? context = _ctx; } // @Route("/votingpoll/save", "POST") class VotingPollRequest implements IReturn, IConvertible { VotingPollAnswer? votingPollAnswer; VotingPollRequest({this.votingPollAnswer}); VotingPollRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { votingPollAnswer = JsonConverters.fromJson(json['votingPollAnswer'],'VotingPollAnswer',context!); return this; } Map toJson() => { 'votingPollAnswer': JsonConverters.toJson(votingPollAnswer,'VotingPollAnswer',context!) }; createResponse() => Uint8List(0); getResponseTypeName() => "Uint8List"; getTypeName() => "VotingPollRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'VotingPollAnswer': TypeInfo(TypeOf.Class, create:() => VotingPollAnswer()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'Member': TypeInfo(TypeOf.Class, create:() => Member()), 'VotingPollRequest': TypeInfo(TypeOf.Class, create:() => VotingPollRequest()), });