/* Options: Date: 2025-12-06 09:43:45 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: SurveyResponseRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SurveyQuestionResponse implements IConvertible { int? QuestionId; String? Response; SurveyQuestionResponse({this.QuestionId,this.Response}); SurveyQuestionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { QuestionId = json['QuestionId']; Response = json['Response']; return this; } Map toJson() => { 'QuestionId': QuestionId, 'Response': Response }; getTypeName() => "SurveyQuestionResponse"; TypeContext? context = _ctx; } class SurveyResponseResponse implements IConvertible { bool? Success; ResponseStatus? ResponseStatus; SurveyResponseResponse({this.Success,this.ResponseStatus}); SurveyResponseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Success': Success, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "SurveyResponseResponse"; TypeContext? context = _ctx; } // @Route("/v1/Survey/GiftCard/Answer", "POST,OPTIONS") class SurveyResponseRequest implements IReturn, IConvertible, IPost { String? SurveyGuid; List? Responses = []; SurveyResponseRequest({this.SurveyGuid,this.Responses}); SurveyResponseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SurveyGuid = json['SurveyGuid']; Responses = JsonConverters.fromJson(json['Responses'],'List',context!); return this; } Map toJson() => { 'SurveyGuid': SurveyGuid, 'Responses': JsonConverters.toJson(Responses,'List',context!) }; createResponse() => SurveyResponseResponse(); getResponseTypeName() => "SurveyResponseResponse"; getTypeName() => "SurveyResponseRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SurveyQuestionResponse': TypeInfo(TypeOf.Class, create:() => SurveyQuestionResponse()), 'SurveyResponseResponse': TypeInfo(TypeOf.Class, create:() => SurveyResponseResponse()), 'SurveyResponseRequest': TypeInfo(TypeOf.Class, create:() => SurveyResponseRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });