/* Options: Date: 2026-08-01 07:39:08 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: FleetLiveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FleetRowDto implements IConvertible { int? ContactID; String? WorkerName; int? CrewID; String? CrewName; String? BranchId; String? LiveStatus; int? WorkerScheduleItemID; int? JobID; String? CurProperty; String? CurAddress; String? CurZip; String? EnRouteAt; String? StartedAt; double? LastLat; double? LastLng; String? LastLocAt; String? NextProperty; int? DoneVisits; int? TotalVisits; FleetRowDto({this.ContactID,this.WorkerName,this.CrewID,this.CrewName,this.BranchId,this.LiveStatus,this.WorkerScheduleItemID,this.JobID,this.CurProperty,this.CurAddress,this.CurZip,this.EnRouteAt,this.StartedAt,this.LastLat,this.LastLng,this.LastLocAt,this.NextProperty,this.DoneVisits,this.TotalVisits}); FleetRowDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactID = json['ContactID']; WorkerName = json['WorkerName']; CrewID = json['CrewID']; CrewName = json['CrewName']; BranchId = json['BranchId']; LiveStatus = json['LiveStatus']; WorkerScheduleItemID = json['WorkerScheduleItemID']; JobID = json['JobID']; CurProperty = json['CurProperty']; CurAddress = json['CurAddress']; CurZip = json['CurZip']; EnRouteAt = json['EnRouteAt']; StartedAt = json['StartedAt']; LastLat = JsonConverters.toDouble(json['LastLat']); LastLng = JsonConverters.toDouble(json['LastLng']); LastLocAt = json['LastLocAt']; NextProperty = json['NextProperty']; DoneVisits = json['DoneVisits']; TotalVisits = json['TotalVisits']; return this; } Map toJson() => { 'ContactID': ContactID, 'WorkerName': WorkerName, 'CrewID': CrewID, 'CrewName': CrewName, 'BranchId': BranchId, 'LiveStatus': LiveStatus, 'WorkerScheduleItemID': WorkerScheduleItemID, 'JobID': JobID, 'CurProperty': CurProperty, 'CurAddress': CurAddress, 'CurZip': CurZip, 'EnRouteAt': EnRouteAt, 'StartedAt': StartedAt, 'LastLat': LastLat, 'LastLng': LastLng, 'LastLocAt': LastLocAt, 'NextProperty': NextProperty, 'DoneVisits': DoneVisits, 'TotalVisits': TotalVisits }; getTypeName() => "FleetRowDto"; TypeContext? context = _ctx; } class FleetLiveResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Rows = []; int? ActiveWorkers; int? EnRoute; int? OnSite; int? Waiting; int? Done; int? RunningLate; int? PageTotal; int? Page; int? PageSize; FleetLiveResponse({this.ResponseStatus,this.Rows,this.ActiveWorkers,this.EnRoute,this.OnSite,this.Waiting,this.Done,this.RunningLate,this.PageTotal,this.Page,this.PageSize}); FleetLiveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Rows = JsonConverters.fromJson(json['Rows'],'List',context!); ActiveWorkers = json['ActiveWorkers']; EnRoute = json['EnRoute']; OnSite = json['OnSite']; Waiting = json['Waiting']; Done = json['Done']; RunningLate = json['RunningLate']; PageTotal = json['PageTotal']; Page = json['Page']; PageSize = json['PageSize']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Rows': JsonConverters.toJson(Rows,'List',context!), 'ActiveWorkers': ActiveWorkers, 'EnRoute': EnRoute, 'OnSite': OnSite, 'Waiting': Waiting, 'Done': Done, 'RunningLate': RunningLate, 'PageTotal': PageTotal, 'Page': Page, 'PageSize': PageSize }; getTypeName() => "FleetLiveResponse"; TypeContext? context = _ctx; } // @Route("/v1/fleet/live", "GET,OPTIONS") class FleetLiveRequest implements IReturn, IConvertible, IGet { String? Date; String? Status; int? CrewID; String? Zip; String? BranchId; String? Search; int? Page; int? PageSize; FleetLiveRequest({this.Date,this.Status,this.CrewID,this.Zip,this.BranchId,this.Search,this.Page,this.PageSize}); FleetLiveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Date = json['Date']; Status = json['Status']; CrewID = json['CrewID']; Zip = json['Zip']; BranchId = json['BranchId']; Search = json['Search']; Page = json['Page']; PageSize = json['PageSize']; return this; } Map toJson() => { 'Date': Date, 'Status': Status, 'CrewID': CrewID, 'Zip': Zip, 'BranchId': BranchId, 'Search': Search, 'Page': Page, 'PageSize': PageSize }; createResponse() => FleetLiveResponse(); getResponseTypeName() => "FleetLiveResponse"; getTypeName() => "FleetLiveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FleetRowDto': TypeInfo(TypeOf.Class, create:() => FleetRowDto()), 'FleetLiveResponse': TypeInfo(TypeOf.Class, create:() => FleetLiveResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FleetLiveRequest': TypeInfo(TypeOf.Class, create:() => FleetLiveRequest()), });