/* Options: Date: 2025-12-06 06:11:30 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AgentBackOfficeAnswersRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentRegistrationAnswer implements IConvertible { int? AgentRegistrationTempId; int? QuestionId; bool? AnswerYN; String? AnswerText; DateTime? DateCreated; AgentRegistrationAnswer({this.AgentRegistrationTempId,this.QuestionId,this.AnswerYN,this.AnswerText,this.DateCreated}); AgentRegistrationAnswer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentRegistrationTempId = json['AgentRegistrationTempId']; QuestionId = json['QuestionId']; AnswerYN = json['AnswerYN']; AnswerText = json['AnswerText']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); return this; } Map toJson() => { 'AgentRegistrationTempId': AgentRegistrationTempId, 'QuestionId': QuestionId, 'AnswerYN': AnswerYN, 'AnswerText': AnswerText, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!) }; getTypeName() => "AgentRegistrationAnswer"; TypeContext? context = _ctx; } class AgentBackofficeAnswersResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? Success; AgentBackofficeAnswersResponse({this.ResponseStatus,this.Success}); AgentBackofficeAnswersResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Success = json['Success']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Success': Success }; getTypeName() => "AgentBackofficeAnswersResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentBackofficeAnswers/{AgentRegistrationTempId}", "POST,OPTIONS") class AgentBackOfficeAnswersRequest implements IReturn, IConvertible, IPost { int? AgentRegistrationTempId; List? AgentRegistrationAnswers = []; AgentBackOfficeAnswersRequest({this.AgentRegistrationTempId,this.AgentRegistrationAnswers}); AgentBackOfficeAnswersRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentRegistrationTempId = json['AgentRegistrationTempId']; AgentRegistrationAnswers = JsonConverters.fromJson(json['AgentRegistrationAnswers'],'List',context!); return this; } Map toJson() => { 'AgentRegistrationTempId': AgentRegistrationTempId, 'AgentRegistrationAnswers': JsonConverters.toJson(AgentRegistrationAnswers,'List',context!) }; createResponse() => AgentBackofficeAnswersResponse(); getResponseTypeName() => "AgentBackofficeAnswersResponse"; getTypeName() => "AgentBackOfficeAnswersRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentRegistrationAnswer': TypeInfo(TypeOf.Class, create:() => AgentRegistrationAnswer()), 'AgentBackofficeAnswersResponse': TypeInfo(TypeOf.Class, create:() => AgentBackofficeAnswersResponse()), 'AgentBackOfficeAnswersRequest': TypeInfo(TypeOf.Class, create:() => AgentBackOfficeAnswersRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });