/* Options: Date: 2026-10-16 01:14:42 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: KpiV2VisitsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SvcVisitRow implements IConvertible { String? CheckinId; String? TicketLabel; DateTime? LocalDate; String? LineId; String? ServiceName; String? StationId; String? StationName; String? EmployeeId; String? EmployeeName; String? CustomerName; int? ContactId; int? ContactAgentId; String? CustomerId; bool? IsAppointment; DateTime? LocalHere; DateTime? LocalCalled; DateTime? LocalStart; DateTime? LocalEnd; int? WaitSec; int? ServeSec; String? Outcome; double? Fee; SvcVisitRow({this.CheckinId,this.TicketLabel,this.LocalDate,this.LineId,this.ServiceName,this.StationId,this.StationName,this.EmployeeId,this.EmployeeName,this.CustomerName,this.ContactId,this.ContactAgentId,this.CustomerId,this.IsAppointment,this.LocalHere,this.LocalCalled,this.LocalStart,this.LocalEnd,this.WaitSec,this.ServeSec,this.Outcome,this.Fee}); SvcVisitRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CheckinId = json['CheckinId']; TicketLabel = json['TicketLabel']; LocalDate = JsonConverters.fromJson(json['LocalDate'],'DateTime',context!); LineId = json['LineId']; ServiceName = json['ServiceName']; StationId = json['StationId']; StationName = json['StationName']; EmployeeId = json['EmployeeId']; EmployeeName = json['EmployeeName']; CustomerName = json['CustomerName']; ContactId = json['ContactId']; ContactAgentId = json['ContactAgentId']; CustomerId = json['CustomerId']; IsAppointment = json['IsAppointment']; LocalHere = JsonConverters.fromJson(json['LocalHere'],'DateTime',context!); LocalCalled = JsonConverters.fromJson(json['LocalCalled'],'DateTime',context!); LocalStart = JsonConverters.fromJson(json['LocalStart'],'DateTime',context!); LocalEnd = JsonConverters.fromJson(json['LocalEnd'],'DateTime',context!); WaitSec = json['WaitSec']; ServeSec = json['ServeSec']; Outcome = json['Outcome']; Fee = JsonConverters.toDouble(json['Fee']); return this; } Map toJson() => { 'CheckinId': CheckinId, 'TicketLabel': TicketLabel, 'LocalDate': JsonConverters.toJson(LocalDate,'DateTime',context!), 'LineId': LineId, 'ServiceName': ServiceName, 'StationId': StationId, 'StationName': StationName, 'EmployeeId': EmployeeId, 'EmployeeName': EmployeeName, 'CustomerName': CustomerName, 'ContactId': ContactId, 'ContactAgentId': ContactAgentId, 'CustomerId': CustomerId, 'IsAppointment': IsAppointment, 'LocalHere': JsonConverters.toJson(LocalHere,'DateTime',context!), 'LocalCalled': JsonConverters.toJson(LocalCalled,'DateTime',context!), 'LocalStart': JsonConverters.toJson(LocalStart,'DateTime',context!), 'LocalEnd': JsonConverters.toJson(LocalEnd,'DateTime',context!), 'WaitSec': WaitSec, 'ServeSec': ServeSec, 'Outcome': Outcome, 'Fee': Fee }; getTypeName() => "SvcVisitRow"; TypeContext? context = _ctx; } class SvcChip implements IConvertible { String? LineId; String? Name; int? N; SvcChip({this.LineId,this.Name,this.N}); SvcChip.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LineId = json['LineId']; Name = json['Name']; N = json['N']; return this; } Map toJson() => { 'LineId': LineId, 'Name': Name, 'N': N }; getTypeName() => "SvcChip"; TypeContext? context = _ctx; } class SvcVisitPage implements IConvertible { List? Rows = []; int? TotalRows; int? Page; int? PageSize; Map? OutcomeCounts = {}; List? Services = []; bool? CanSeeStaff; bool? CanSeeFinancial; SvcVisitPage({this.Rows,this.TotalRows,this.Page,this.PageSize,this.OutcomeCounts,this.Services,this.CanSeeStaff,this.CanSeeFinancial}); SvcVisitPage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Rows = JsonConverters.fromJson(json['Rows'],'List',context!); TotalRows = json['TotalRows']; Page = json['Page']; PageSize = json['PageSize']; OutcomeCounts = JsonConverters.fromJson(json['OutcomeCounts'],'Map',context!); Services = JsonConverters.fromJson(json['Services'],'List',context!); CanSeeStaff = json['CanSeeStaff']; CanSeeFinancial = json['CanSeeFinancial']; return this; } Map toJson() => { 'Rows': JsonConverters.toJson(Rows,'List',context!), 'TotalRows': TotalRows, 'Page': Page, 'PageSize': PageSize, 'OutcomeCounts': JsonConverters.toJson(OutcomeCounts,'Map',context!), 'Services': JsonConverters.toJson(Services,'List',context!), 'CanSeeStaff': CanSeeStaff, 'CanSeeFinancial': CanSeeFinancial }; getTypeName() => "SvcVisitPage"; TypeContext? context = _ctx; } class KpiV2VisitsResponse implements IConvertible { ResponseStatus? ResponseStatus; SvcVisitPage? Visits; KpiV2VisitsResponse({this.ResponseStatus,this.Visits}); KpiV2VisitsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Visits = JsonConverters.fromJson(json['Visits'],'SvcVisitPage',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Visits': JsonConverters.toJson(Visits,'SvcVisitPage',context!) }; getTypeName() => "KpiV2VisitsResponse"; TypeContext? context = _ctx; } // @Route("/v1/dashboard/kpiv2/visits", "POST,OPTIONS") class KpiV2VisitsRequest implements IReturn, IConvertible, IPost { String? BranchId; DateTime? FromDate; DateTime? ToDate; String? StationId; String? EmployeeId; String? Outcome; String? LineId; int? Page; int? PageSize; KpiV2VisitsRequest({this.BranchId,this.FromDate,this.ToDate,this.StationId,this.EmployeeId,this.Outcome,this.LineId,this.Page,this.PageSize}); KpiV2VisitsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BranchId = json['BranchId']; FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); StationId = json['StationId']; EmployeeId = json['EmployeeId']; Outcome = json['Outcome']; LineId = json['LineId']; Page = json['Page']; PageSize = json['PageSize']; return this; } Map toJson() => { 'BranchId': BranchId, 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!), 'StationId': StationId, 'EmployeeId': EmployeeId, 'Outcome': Outcome, 'LineId': LineId, 'Page': Page, 'PageSize': PageSize }; createResponse() => KpiV2VisitsResponse(); getResponseTypeName() => "KpiV2VisitsResponse"; getTypeName() => "KpiV2VisitsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SvcVisitRow': TypeInfo(TypeOf.Class, create:() => SvcVisitRow()), 'SvcChip': TypeInfo(TypeOf.Class, create:() => SvcChip()), 'SvcVisitPage': TypeInfo(TypeOf.Class, create:() => SvcVisitPage()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'KpiV2VisitsResponse': TypeInfo(TypeOf.Class, create:() => KpiV2VisitsResponse()), 'KpiV2VisitsRequest': TypeInfo(TypeOf.Class, create:() => KpiV2VisitsRequest()), });