/* Options: Date: 2025-12-06 11:42: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: LineAnswersRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class LineAnswer implements IConvertible { int? Id; String? CustomerCheckInId; int? LineQuestionId; String? Question; String? Answer; LineAnswer({this.Id,this.CustomerCheckInId,this.LineQuestionId,this.Question,this.Answer}); LineAnswer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CustomerCheckInId = json['CustomerCheckInId']; LineQuestionId = json['LineQuestionId']; Question = json['Question']; Answer = json['Answer']; return this; } Map toJson() => { 'Id': Id, 'CustomerCheckInId': CustomerCheckInId, 'LineQuestionId': LineQuestionId, 'Question': Question, 'Answer': Answer }; getTypeName() => "LineAnswer"; TypeContext? context = _ctx; } class LineQuestion implements IConvertible { int? Id; String? CustomerCheckInId; String? LineId; String? Question; String? Answer; bool? Active; LineQuestion({this.Id,this.CustomerCheckInId,this.LineId,this.Question,this.Answer,this.Active}); LineQuestion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CustomerCheckInId = json['CustomerCheckInId']; LineId = json['LineId']; Question = json['Question']; Answer = json['Answer']; Active = json['Active']; return this; } Map toJson() => { 'Id': Id, 'CustomerCheckInId': CustomerCheckInId, 'LineId': LineId, 'Question': Question, 'Answer': Answer, 'Active': Active }; getTypeName() => "LineQuestion"; TypeContext? context = _ctx; } class LineQuestionsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? LineQuestions = []; LineQuestionsResponse({this.ResponseStatus,this.LineQuestions}); LineQuestionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); LineQuestions = JsonConverters.fromJson(json['LineQuestions'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'LineQuestions': JsonConverters.toJson(LineQuestions,'List',context!) }; getTypeName() => "LineQuestionsResponse"; TypeContext? context = _ctx; } // @Route("/v1/LineAnswers", "POST,PUT,DELETE,OPTIONS") // @Route("/v1/LineAnswers/{CustomerCheckInId}", "GET, OPTIONS") class LineAnswersRequest implements IReturn, IConvertible, IPost { List? LineAnswers = []; String? CustomerCheckInId; LineAnswersRequest({this.LineAnswers,this.CustomerCheckInId}); LineAnswersRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LineAnswers = JsonConverters.fromJson(json['LineAnswers'],'List',context!); CustomerCheckInId = json['CustomerCheckInId']; return this; } Map toJson() => { 'LineAnswers': JsonConverters.toJson(LineAnswers,'List',context!), 'CustomerCheckInId': CustomerCheckInId }; createResponse() => LineQuestionsResponse(); getResponseTypeName() => "LineQuestionsResponse"; getTypeName() => "LineAnswersRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'LineAnswer': TypeInfo(TypeOf.Class, create:() => LineAnswer()), 'LineQuestion': TypeInfo(TypeOf.Class, create:() => LineQuestion()), 'LineQuestionsResponse': TypeInfo(TypeOf.Class, create:() => LineQuestionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LineAnswersRequest': TypeInfo(TypeOf.Class, create:() => LineAnswersRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });