/* Options: Date: 2026-08-01 06:27:49 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: RoutePlanWeekRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RoutePlanCrew implements IConvertible { int? CrewID; String? CrewName; String? CrewColor; String? HomeZip; double? YardLat; double? YardLng; int? DailyCapacityMin; int? WeeklyCapacityMin; bool? Specialist; RoutePlanCrew({this.CrewID,this.CrewName,this.CrewColor,this.HomeZip,this.YardLat,this.YardLng,this.DailyCapacityMin,this.WeeklyCapacityMin,this.Specialist}); RoutePlanCrew.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CrewID = json['CrewID']; CrewName = json['CrewName']; CrewColor = json['CrewColor']; HomeZip = json['HomeZip']; YardLat = JsonConverters.toDouble(json['YardLat']); YardLng = JsonConverters.toDouble(json['YardLng']); DailyCapacityMin = json['DailyCapacityMin']; WeeklyCapacityMin = json['WeeklyCapacityMin']; Specialist = json['Specialist']; return this; } Map toJson() => { 'CrewID': CrewID, 'CrewName': CrewName, 'CrewColor': CrewColor, 'HomeZip': HomeZip, 'YardLat': YardLat, 'YardLng': YardLng, 'DailyCapacityMin': DailyCapacityMin, 'WeeklyCapacityMin': WeeklyCapacityMin, 'Specialist': Specialist }; getTypeName() => "RoutePlanCrew"; TypeContext? context = _ctx; } class RoutePlanVisit implements IConvertible { int? AgreementID; int? AgreementJobID; String? Name; String? Sub; String? ServiceType; String? Zip; String? Area; double? Lat; double? Lng; int? DurationMin; String? DueIso; String? DueLabel; bool? Overdue; int? DefaultCrewID; int? RouteCrewID; int? RouteSeq; String? RouteDateIso; int? LateDays; bool? AutoPay; String? SkipPolicy; double? SkipCreditAmount; RoutePlanVisit({this.AgreementID,this.AgreementJobID,this.Name,this.Sub,this.ServiceType,this.Zip,this.Area,this.Lat,this.Lng,this.DurationMin,this.DueIso,this.DueLabel,this.Overdue,this.DefaultCrewID,this.RouteCrewID,this.RouteSeq,this.RouteDateIso,this.LateDays,this.AutoPay,this.SkipPolicy,this.SkipCreditAmount}); RoutePlanVisit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgreementID = json['AgreementID']; AgreementJobID = json['AgreementJobID']; Name = json['Name']; Sub = json['Sub']; ServiceType = json['ServiceType']; Zip = json['Zip']; Area = json['Area']; Lat = JsonConverters.toDouble(json['Lat']); Lng = JsonConverters.toDouble(json['Lng']); DurationMin = json['DurationMin']; DueIso = json['DueIso']; DueLabel = json['DueLabel']; Overdue = json['Overdue']; DefaultCrewID = json['DefaultCrewID']; RouteCrewID = json['RouteCrewID']; RouteSeq = json['RouteSeq']; RouteDateIso = json['RouteDateIso']; LateDays = json['LateDays']; AutoPay = json['AutoPay']; SkipPolicy = json['SkipPolicy']; SkipCreditAmount = JsonConverters.toDouble(json['SkipCreditAmount']); return this; } Map toJson() => { 'AgreementID': AgreementID, 'AgreementJobID': AgreementJobID, 'Name': Name, 'Sub': Sub, 'ServiceType': ServiceType, 'Zip': Zip, 'Area': Area, 'Lat': Lat, 'Lng': Lng, 'DurationMin': DurationMin, 'DueIso': DueIso, 'DueLabel': DueLabel, 'Overdue': Overdue, 'DefaultCrewID': DefaultCrewID, 'RouteCrewID': RouteCrewID, 'RouteSeq': RouteSeq, 'RouteDateIso': RouteDateIso, 'LateDays': LateDays, 'AutoPay': AutoPay, 'SkipPolicy': SkipPolicy, 'SkipCreditAmount': SkipCreditAmount }; getTypeName() => "RoutePlanVisit"; TypeContext? context = _ctx; } class RoutePlanSkippedVisit implements IConvertible { int? AgreementJobID; int? AgreementID; String? Name; String? DateIso; String? Reason; double? CreditAmount; RoutePlanSkippedVisit({this.AgreementJobID,this.AgreementID,this.Name,this.DateIso,this.Reason,this.CreditAmount}); RoutePlanSkippedVisit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgreementJobID = json['AgreementJobID']; AgreementID = json['AgreementID']; Name = json['Name']; DateIso = json['DateIso']; Reason = json['Reason']; CreditAmount = JsonConverters.toDouble(json['CreditAmount']); return this; } Map toJson() => { 'AgreementJobID': AgreementJobID, 'AgreementID': AgreementID, 'Name': Name, 'DateIso': DateIso, 'Reason': Reason, 'CreditAmount': CreditAmount }; getTypeName() => "RoutePlanSkippedVisit"; TypeContext? context = _ctx; } class RoutePlanWeekResponse implements IConvertible { String? FromIso; String? ToIso; List? Crews = []; List? Visits = []; List? Skipped = []; ResponseStatus? ResponseStatus; RoutePlanWeekResponse({this.FromIso,this.ToIso,this.Crews,this.Visits,this.Skipped,this.ResponseStatus}); RoutePlanWeekResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FromIso = json['FromIso']; ToIso = json['ToIso']; Crews = JsonConverters.fromJson(json['Crews'],'List',context!); Visits = JsonConverters.fromJson(json['Visits'],'List',context!); Skipped = JsonConverters.fromJson(json['Skipped'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'FromIso': FromIso, 'ToIso': ToIso, 'Crews': JsonConverters.toJson(Crews,'List',context!), 'Visits': JsonConverters.toJson(Visits,'List',context!), 'Skipped': JsonConverters.toJson(Skipped,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "RoutePlanWeekResponse"; TypeContext? context = _ctx; } // @Route("/v1/routeplan/week", "GET,OPTIONS") class RoutePlanWeekRequest implements IReturn, IConvertible, IGet { String? From; RoutePlanWeekRequest({this.From}); RoutePlanWeekRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { From = json['From']; return this; } Map toJson() => { 'From': From }; createResponse() => RoutePlanWeekResponse(); getResponseTypeName() => "RoutePlanWeekResponse"; getTypeName() => "RoutePlanWeekRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'RoutePlanCrew': TypeInfo(TypeOf.Class, create:() => RoutePlanCrew()), 'RoutePlanVisit': TypeInfo(TypeOf.Class, create:() => RoutePlanVisit()), 'RoutePlanSkippedVisit': TypeInfo(TypeOf.Class, create:() => RoutePlanSkippedVisit()), 'RoutePlanWeekResponse': TypeInfo(TypeOf.Class, create:() => RoutePlanWeekResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RoutePlanWeekRequest': TypeInfo(TypeOf.Class, create:() => RoutePlanWeekRequest()), });