/* Options: Date: 2025-12-06 07:07:13 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: SurveyAdminRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SurveyResponse implements IConvertible { String? ContactFullName; int? SurveyId; int? ContactId; String? ContactName; int? AgentId; String? AgentName; String? Response; String? ResponseCode; DateTime? DateAnswered; SurveyResponse({this.ContactFullName,this.SurveyId,this.ContactId,this.ContactName,this.AgentId,this.AgentName,this.Response,this.ResponseCode,this.DateAnswered}); SurveyResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactFullName = json['ContactFullName']; SurveyId = json['SurveyId']; ContactId = json['ContactId']; ContactName = json['ContactName']; AgentId = json['AgentId']; AgentName = json['AgentName']; Response = json['Response']; ResponseCode = json['ResponseCode']; DateAnswered = JsonConverters.fromJson(json['DateAnswered'],'DateTime',context!); return this; } Map toJson() => { 'ContactFullName': ContactFullName, 'SurveyId': SurveyId, 'ContactId': ContactId, 'ContactName': ContactName, 'AgentId': AgentId, 'AgentName': AgentName, 'Response': Response, 'ResponseCode': ResponseCode, 'DateAnswered': JsonConverters.toJson(DateAnswered,'DateTime',context!) }; getTypeName() => "SurveyResponse"; TypeContext? context = _ctx; } class SurveyAdminResponse implements IConvertible { List? Answers = []; ResponseStatus? ResponseStatus; SurveyAdminResponse({this.Answers,this.ResponseStatus}); SurveyAdminResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Answers = JsonConverters.fromJson(json['Answers'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Answers': JsonConverters.toJson(Answers,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SurveyAdminResponse"; TypeContext? context = _ctx; } // @Route("/v1/SurveyAdmin/GiftCard", "GET,OPTIONS") class SurveyAdminRequest implements IReturn, IConvertible, IGet { int? SurveyId; List? Answers = []; SurveyAdminRequest({this.SurveyId,this.Answers}); SurveyAdminRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SurveyId = json['SurveyId']; Answers = JsonConverters.fromJson(json['Answers'],'List',context!); return this; } Map toJson() => { 'SurveyId': SurveyId, 'Answers': JsonConverters.toJson(Answers,'List',context!) }; createResponse() => SurveyAdminResponse(); getResponseTypeName() => "SurveyAdminResponse"; getTypeName() => "SurveyAdminRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SurveyResponse': TypeInfo(TypeOf.Class, create:() => SurveyResponse()), 'SurveyAdminResponse': TypeInfo(TypeOf.Class, create:() => SurveyAdminResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SurveyAdminRequest': TypeInfo(TypeOf.Class, create:() => SurveyAdminRequest()), });