/* Options: Date: 2025-12-06 06:08:25 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: LinesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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 LinesResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Lines = []; LinesResponse({this.ResponseStatus,this.Lines}); LinesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Lines = JsonConverters.fromJson(json['Lines'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Lines': JsonConverters.toJson(Lines,'List',context!) }; getTypeName() => "LinesResponse"; TypeContext? context = _ctx; } // @Route("/v1/Lines", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Lines/{Id}", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/LinesByLocationId/{LocationId}", "GET,POST,PUT,DELETE,OPTIONS") class LinesRequest implements IReturn, IConvertible, IPost { String? Id; String? LocationId; List? Lines = []; LinesRequest({this.Id,this.LocationId,this.Lines}); LinesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LocationId = json['LocationId']; Lines = JsonConverters.fromJson(json['Lines'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'LocationId': LocationId, 'Lines': JsonConverters.toJson(Lines,'List',context!) }; createResponse() => LinesResponse(); getResponseTypeName() => "LinesResponse"; getTypeName() => "LinesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'LineImage': TypeInfo(TypeOf.Class, create:() => LineImage()), 'Line': TypeInfo(TypeOf.Class, create:() => Line()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LinesResponse': TypeInfo(TypeOf.Class, create:() => LinesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LinesRequest': TypeInfo(TypeOf.Class, create:() => LinesRequest()), });