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