/* Options: Date: 2026-10-16 01:08:51 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: KpiV2LiveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SvcLiveWindow implements IConvertible { String? StationId; String? Name; String? Status; String? EmployeeId; String? EmployeeName; DateTime? SignedInUtc; DateTime? LastSeenUtc; DateTime? SinceUtc; String? PauseReason; String? CheckinId; String? TicketLabel; String? CustomerName; String? ServiceName; DateTime? StartUtc; DateTime? CalledUtc; int? ServedToday; DateTime? LastCalledUtc; SvcLiveWindow({this.StationId,this.Name,this.Status,this.EmployeeId,this.EmployeeName,this.SignedInUtc,this.LastSeenUtc,this.SinceUtc,this.PauseReason,this.CheckinId,this.TicketLabel,this.CustomerName,this.ServiceName,this.StartUtc,this.CalledUtc,this.ServedToday,this.LastCalledUtc}); SvcLiveWindow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StationId = json['StationId']; Name = json['Name']; Status = json['Status']; EmployeeId = json['EmployeeId']; EmployeeName = json['EmployeeName']; SignedInUtc = JsonConverters.fromJson(json['SignedInUtc'],'DateTime',context!); LastSeenUtc = JsonConverters.fromJson(json['LastSeenUtc'],'DateTime',context!); SinceUtc = JsonConverters.fromJson(json['SinceUtc'],'DateTime',context!); PauseReason = json['PauseReason']; CheckinId = json['CheckinId']; TicketLabel = json['TicketLabel']; CustomerName = json['CustomerName']; ServiceName = json['ServiceName']; StartUtc = JsonConverters.fromJson(json['StartUtc'],'DateTime',context!); CalledUtc = JsonConverters.fromJson(json['CalledUtc'],'DateTime',context!); ServedToday = json['ServedToday']; LastCalledUtc = JsonConverters.fromJson(json['LastCalledUtc'],'DateTime',context!); return this; } Map toJson() => { 'StationId': StationId, 'Name': Name, 'Status': Status, 'EmployeeId': EmployeeId, 'EmployeeName': EmployeeName, 'SignedInUtc': JsonConverters.toJson(SignedInUtc,'DateTime',context!), 'LastSeenUtc': JsonConverters.toJson(LastSeenUtc,'DateTime',context!), 'SinceUtc': JsonConverters.toJson(SinceUtc,'DateTime',context!), 'PauseReason': PauseReason, 'CheckinId': CheckinId, 'TicketLabel': TicketLabel, 'CustomerName': CustomerName, 'ServiceName': ServiceName, 'StartUtc': JsonConverters.toJson(StartUtc,'DateTime',context!), 'CalledUtc': JsonConverters.toJson(CalledUtc,'DateTime',context!), 'ServedToday': ServedToday, 'LastCalledUtc': JsonConverters.toJson(LastCalledUtc,'DateTime',context!) }; getTypeName() => "SvcLiveWindow"; TypeContext? context = _ctx; } class SvcLiveLine implements IConvertible { String? LineId; String? Name; int? Waiting; DateTime? OldestHereUtc; SvcLiveLine({this.LineId,this.Name,this.Waiting,this.OldestHereUtc}); SvcLiveLine.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LineId = json['LineId']; Name = json['Name']; Waiting = json['Waiting']; OldestHereUtc = JsonConverters.fromJson(json['OldestHereUtc'],'DateTime',context!); return this; } Map toJson() => { 'LineId': LineId, 'Name': Name, 'Waiting': Waiting, 'OldestHereUtc': JsonConverters.toJson(OldestHereUtc,'DateTime',context!) }; getTypeName() => "SvcLiveLine"; TypeContext? context = _ctx; } class SvcAlert implements IConvertible { String? Level; String? View; String? Code; String? StationId; String? EmployeeId; String? BranchId; String? LineId; String? Name; String? OtherLineId; String? OtherName; List? StationIds = []; Map? Values = {}; SvcAlert({this.Level,this.View,this.Code,this.StationId,this.EmployeeId,this.BranchId,this.LineId,this.Name,this.OtherLineId,this.OtherName,this.StationIds,this.Values}); SvcAlert.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Level = json['Level']; View = json['View']; Code = json['Code']; StationId = json['StationId']; EmployeeId = json['EmployeeId']; BranchId = json['BranchId']; LineId = json['LineId']; Name = json['Name']; OtherLineId = json['OtherLineId']; OtherName = json['OtherName']; StationIds = JsonConverters.fromJson(json['StationIds'],'List',context!); Values = JsonConverters.fromJson(json['Values'],'Map',context!); return this; } Map toJson() => { 'Level': Level, 'View': View, 'Code': Code, 'StationId': StationId, 'EmployeeId': EmployeeId, 'BranchId': BranchId, 'LineId': LineId, 'Name': Name, 'OtherLineId': OtherLineId, 'OtherName': OtherName, 'StationIds': JsonConverters.toJson(StationIds,'List',context!), 'Values': JsonConverters.toJson(Values,'Map',context!) }; getTypeName() => "SvcAlert"; TypeContext? context = _ctx; } class SvcLive implements IConvertible { String? BranchId; DateTime? NowUtc; int? LocalOffMin; String? ZoneCode; List? Windows = []; List? Line = []; int? InLine; int? LongestWaitSec; int? Staffed; List? Alerts = []; SvcLive({this.BranchId,this.NowUtc,this.LocalOffMin,this.ZoneCode,this.Windows,this.Line,this.InLine,this.LongestWaitSec,this.Staffed,this.Alerts}); SvcLive.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BranchId = json['BranchId']; NowUtc = JsonConverters.fromJson(json['NowUtc'],'DateTime',context!); LocalOffMin = json['LocalOffMin']; ZoneCode = json['ZoneCode']; Windows = JsonConverters.fromJson(json['Windows'],'List',context!); Line = JsonConverters.fromJson(json['Line'],'List',context!); InLine = json['InLine']; LongestWaitSec = json['LongestWaitSec']; Staffed = json['Staffed']; Alerts = JsonConverters.fromJson(json['Alerts'],'List',context!); return this; } Map toJson() => { 'BranchId': BranchId, 'NowUtc': JsonConverters.toJson(NowUtc,'DateTime',context!), 'LocalOffMin': LocalOffMin, 'ZoneCode': ZoneCode, 'Windows': JsonConverters.toJson(Windows,'List',context!), 'Line': JsonConverters.toJson(Line,'List',context!), 'InLine': InLine, 'LongestWaitSec': LongestWaitSec, 'Staffed': Staffed, 'Alerts': JsonConverters.toJson(Alerts,'List',context!) }; getTypeName() => "SvcLive"; TypeContext? context = _ctx; } class KpiV2LiveResponse implements IConvertible { ResponseStatus? ResponseStatus; SvcLive? Live; KpiV2LiveResponse({this.ResponseStatus,this.Live}); KpiV2LiveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Live = JsonConverters.fromJson(json['Live'],'SvcLive',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Live': JsonConverters.toJson(Live,'SvcLive',context!) }; getTypeName() => "KpiV2LiveResponse"; TypeContext? context = _ctx; } // @Route("/v1/dashboard/kpiv2/live/{BranchId}", "GET,OPTIONS") class KpiV2LiveRequest implements IReturn, IConvertible, IGet { String? BranchId; KpiV2LiveRequest({this.BranchId}); KpiV2LiveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BranchId = json['BranchId']; return this; } Map toJson() => { 'BranchId': BranchId }; createResponse() => KpiV2LiveResponse(); getResponseTypeName() => "KpiV2LiveResponse"; getTypeName() => "KpiV2LiveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SvcLiveWindow': TypeInfo(TypeOf.Class, create:() => SvcLiveWindow()), 'SvcLiveLine': TypeInfo(TypeOf.Class, create:() => SvcLiveLine()), 'SvcAlert': TypeInfo(TypeOf.Class, create:() => SvcAlert()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'SvcLive': TypeInfo(TypeOf.Class, create:() => SvcLive()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'KpiV2LiveResponse': TypeInfo(TypeOf.Class, create:() => KpiV2LiveResponse()), 'KpiV2LiveRequest': TypeInfo(TypeOf.Class, create:() => KpiV2LiveRequest()), });