/* Options: Date: 2025-12-06 06:55:40 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: CustomerCheckinsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CustomerCheckinObject implements IConvertible { String? Id; String? LineId; String? CustomerId; String? EmployeeId; String? LocationId; String? StationId; DateTime? SignInTime; DateTime? AdjustedSignInTime; bool? SendReminders; int? Status; int? TaskTime; bool? Completed; DateTime? CompletedTime; bool? QuestionnaireSubmitted; List? LineIds = []; CustomerCheckinObject({this.Id,this.LineId,this.CustomerId,this.EmployeeId,this.LocationId,this.StationId,this.SignInTime,this.AdjustedSignInTime,this.SendReminders,this.Status,this.TaskTime,this.Completed,this.CompletedTime,this.QuestionnaireSubmitted,this.LineIds}); CustomerCheckinObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LineId = json['LineId']; CustomerId = json['CustomerId']; EmployeeId = json['EmployeeId']; LocationId = json['LocationId']; StationId = json['StationId']; SignInTime = JsonConverters.fromJson(json['SignInTime'],'DateTime',context!); AdjustedSignInTime = JsonConverters.fromJson(json['AdjustedSignInTime'],'DateTime',context!); SendReminders = json['SendReminders']; Status = json['Status']; TaskTime = json['TaskTime']; Completed = json['Completed']; CompletedTime = JsonConverters.fromJson(json['CompletedTime'],'DateTime',context!); QuestionnaireSubmitted = json['QuestionnaireSubmitted']; LineIds = JsonConverters.fromJson(json['LineIds'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'LineId': LineId, 'CustomerId': CustomerId, 'EmployeeId': EmployeeId, 'LocationId': LocationId, 'StationId': StationId, 'SignInTime': JsonConverters.toJson(SignInTime,'DateTime',context!), 'AdjustedSignInTime': JsonConverters.toJson(AdjustedSignInTime,'DateTime',context!), 'SendReminders': SendReminders, 'Status': Status, 'TaskTime': TaskTime, 'Completed': Completed, 'CompletedTime': JsonConverters.toJson(CompletedTime,'DateTime',context!), 'QuestionnaireSubmitted': QuestionnaireSubmitted, 'LineIds': JsonConverters.toJson(LineIds,'List',context!) }; getTypeName() => "CustomerCheckinObject"; 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 LineImage implements IConvertible { String? ImageId; String? FileName; String? ImageTitle; DateTime? UploadDate; LineImage({this.ImageId,this.FileName,this.ImageTitle,this.UploadDate}); LineImage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ImageId = json['ImageId']; FileName = json['FileName']; ImageTitle = json['ImageTitle']; UploadDate = JsonConverters.fromJson(json['UploadDate'],'DateTime',context!); return this; } Map toJson() => { 'ImageId': ImageId, 'FileName': FileName, 'ImageTitle': ImageTitle, 'UploadDate': JsonConverters.toJson(UploadDate,'DateTime',context!) }; getTypeName() => "LineImage"; TypeContext? context = _ctx; } class Line implements IConvertible { String? Id; String? LocationId; String? LocationName; String? Name; String? Description; int? ServiceDurationMinutes; int? WaitTime; double? Cost; int? UpperThreshold; int? LowerThreshold; bool? Active; DateTime? EntDate; DateTime? ModDate; bool? SendQuestionnaire; bool? RequireUpload; String? UploadMessage; List? LineImages = []; Line({this.Id,this.LocationId,this.LocationName,this.Name,this.Description,this.ServiceDurationMinutes,this.WaitTime,this.Cost,this.UpperThreshold,this.LowerThreshold,this.Active,this.EntDate,this.ModDate,this.SendQuestionnaire,this.RequireUpload,this.UploadMessage,this.LineImages}); Line.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LocationId = json['LocationId']; LocationName = json['LocationName']; Name = json['Name']; Description = json['Description']; ServiceDurationMinutes = json['ServiceDurationMinutes']; WaitTime = json['WaitTime']; Cost = JsonConverters.toDouble(json['Cost']); UpperThreshold = json['UpperThreshold']; LowerThreshold = json['LowerThreshold']; Active = json['Active']; EntDate = JsonConverters.fromJson(json['EntDate'],'DateTime',context!); ModDate = JsonConverters.fromJson(json['ModDate'],'DateTime',context!); SendQuestionnaire = json['SendQuestionnaire']; RequireUpload = json['RequireUpload']; UploadMessage = json['UploadMessage']; LineImages = JsonConverters.fromJson(json['LineImages'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'LocationId': LocationId, 'LocationName': LocationName, 'Name': Name, 'Description': Description, 'ServiceDurationMinutes': ServiceDurationMinutes, 'WaitTime': WaitTime, 'Cost': Cost, 'UpperThreshold': UpperThreshold, 'LowerThreshold': LowerThreshold, 'Active': Active, 'EntDate': JsonConverters.toJson(EntDate,'DateTime',context!), 'ModDate': JsonConverters.toJson(ModDate,'DateTime',context!), 'SendQuestionnaire': SendQuestionnaire, 'RequireUpload': RequireUpload, 'UploadMessage': UploadMessage, 'LineImages': JsonConverters.toJson(LineImages,'List',context!) }; getTypeName() => "Line"; TypeContext? context = _ctx; } class CheckinInformation implements IConvertible { String? Id; String? LocationId; String? LocationName; String? CustomerId; bool? QuestionnaireSubmitted; String? Name; String? Description; int? TotalServiceDurationMinutes; double? TotalCost; bool? SendQuestionnaire; bool? RequireUpload; List? Questions = []; List? Lines = []; CheckinInformation({this.Id,this.LocationId,this.LocationName,this.CustomerId,this.QuestionnaireSubmitted,this.Name,this.Description,this.TotalServiceDurationMinutes,this.TotalCost,this.SendQuestionnaire,this.RequireUpload,this.Questions,this.Lines}); CheckinInformation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LocationId = json['LocationId']; LocationName = json['LocationName']; CustomerId = json['CustomerId']; QuestionnaireSubmitted = json['QuestionnaireSubmitted']; Name = json['Name']; Description = json['Description']; TotalServiceDurationMinutes = json['TotalServiceDurationMinutes']; TotalCost = JsonConverters.toDouble(json['TotalCost']); SendQuestionnaire = json['SendQuestionnaire']; RequireUpload = json['RequireUpload']; Questions = JsonConverters.fromJson(json['Questions'],'List',context!); Lines = JsonConverters.fromJson(json['Lines'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'LocationId': LocationId, 'LocationName': LocationName, 'CustomerId': CustomerId, 'QuestionnaireSubmitted': QuestionnaireSubmitted, 'Name': Name, 'Description': Description, 'TotalServiceDurationMinutes': TotalServiceDurationMinutes, 'TotalCost': TotalCost, 'SendQuestionnaire': SendQuestionnaire, 'RequireUpload': RequireUpload, 'Questions': JsonConverters.toJson(Questions,'List',context!), 'Lines': JsonConverters.toJson(Lines,'List',context!) }; getTypeName() => "CheckinInformation"; TypeContext? context = _ctx; } class CustomerCheckinsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? CustomerCheckins = []; CheckinInformation? CustomerCheckinRequirements; CustomerCheckinsResponse({this.ResponseStatus,this.CustomerCheckins,this.CustomerCheckinRequirements}); CustomerCheckinsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); CustomerCheckins = JsonConverters.fromJson(json['CustomerCheckins'],'List',context!); CustomerCheckinRequirements = JsonConverters.fromJson(json['CustomerCheckinRequirements'],'CheckinInformation',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'CustomerCheckins': JsonConverters.toJson(CustomerCheckins,'List',context!), 'CustomerCheckinRequirements': JsonConverters.toJson(CustomerCheckinRequirements,'CheckinInformation',context!) }; getTypeName() => "CustomerCheckinsResponse"; TypeContext? context = _ctx; } // @Route("/v1/CustomerCheckins/GetSingle/{Id}", "GET,POST,DELETE,OPTIONS") class CustomerCheckinsRequest extends CustomerCheckinObject implements IReturn, IConvertible, IGet { CustomerCheckinsRequest(); CustomerCheckinsRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => CustomerCheckinsResponse(); getResponseTypeName() => "CustomerCheckinsResponse"; getTypeName() => "CustomerCheckinsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CustomerCheckinObject': TypeInfo(TypeOf.Class, create:() => CustomerCheckinObject()), 'LineQuestion': TypeInfo(TypeOf.Class, create:() => LineQuestion()), 'LineImage': TypeInfo(TypeOf.Class, create:() => LineImage()), 'Line': TypeInfo(TypeOf.Class, create:() => Line()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CheckinInformation': TypeInfo(TypeOf.Class, create:() => CheckinInformation()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerCheckinsResponse': TypeInfo(TypeOf.Class, create:() => CustomerCheckinsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerCheckinsRequest': TypeInfo(TypeOf.Class, create:() => CustomerCheckinsRequest()), });