/* Options: Date: 2025-12-06 09:15:35 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: GiftCardSurveyRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SurveyQuestion implements IConvertible { int? QuestionId; String? QuestionType; String? HTML; String? DependsOn; SurveyQuestion({this.QuestionId,this.QuestionType,this.HTML,this.DependsOn}); SurveyQuestion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { QuestionId = json['QuestionId']; QuestionType = json['QuestionType']; HTML = json['HTML']; DependsOn = json['DependsOn']; return this; } Map toJson() => { 'QuestionId': QuestionId, 'QuestionType': QuestionType, 'HTML': HTML, 'DependsOn': DependsOn }; getTypeName() => "SurveyQuestion"; TypeContext? context = _ctx; } class Survey implements IConvertible { int? SurveyId; int? ContactId; List? Questions = []; Survey({this.SurveyId,this.ContactId,this.Questions}); Survey.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SurveyId = json['SurveyId']; ContactId = json['ContactId']; Questions = JsonConverters.fromJson(json['Questions'],'List',context!); return this; } Map toJson() => { 'SurveyId': SurveyId, 'ContactId': ContactId, 'Questions': JsonConverters.toJson(Questions,'List',context!) }; getTypeName() => "Survey"; TypeContext? context = _ctx; } class GiftCardSurvey extends Survey implements IConvertible { int? GiftCardId; List? GiftCards = []; GiftCardSurvey({this.GiftCardId,this.GiftCards}); GiftCardSurvey.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); GiftCardId = json['GiftCardId']; GiftCards = JsonConverters.fromJson(json['GiftCards'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'GiftCardId': GiftCardId, 'GiftCards': JsonConverters.toJson(GiftCards,'List',context!) }); getTypeName() => "GiftCardSurvey"; TypeContext? context = _ctx; } class GiftCardSurveyResponse implements IConvertible { GiftCardSurvey? Survey; ResponseStatus? ResponseStatus; GiftCardSurveyResponse({this.Survey,this.ResponseStatus}); GiftCardSurveyResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Survey = JsonConverters.fromJson(json['Survey'],'GiftCardSurvey',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Survey': JsonConverters.toJson(Survey,'GiftCardSurvey',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GiftCardSurveyResponse"; TypeContext? context = _ctx; } // @Route("/v1/Survey/GiftCard/{UID}", "GET") class GiftCardSurveyRequest implements IReturn, IConvertible, IGet { String? UID; GiftCardSurveyRequest({this.UID}); GiftCardSurveyRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UID = json['UID']; return this; } Map toJson() => { 'UID': UID }; createResponse() => GiftCardSurveyResponse(); getResponseTypeName() => "GiftCardSurveyResponse"; getTypeName() => "GiftCardSurveyRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SurveyQuestion': TypeInfo(TypeOf.Class, create:() => SurveyQuestion()), 'Survey': TypeInfo(TypeOf.Class, create:() => Survey()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GiftCardSurvey': TypeInfo(TypeOf.Class, create:() => GiftCardSurvey()), 'GiftCardSurveyResponse': TypeInfo(TypeOf.Class, create:() => GiftCardSurveyResponse()), 'GiftCardSurveyRequest': TypeInfo(TypeOf.Class, create:() => GiftCardSurveyRequest()), });