/* Options: Date: 2026-06-27 20:30:55 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: AgreementPlannerRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AgreementPlannerRow implements IConvertible { int? AgreementID; String? Name; String? ProjectName; String? ServiceType; String? Area; String? Zip; String? Frequency; String? NextDueIso; String? NextDueLabel; bool? Overdue; int? DurationMin; List? EligibleDow = []; int? ScheduledDow; bool? WeeklyAll; bool? DueThisWeek; int? AssignedCrewID; String? AssignedCrewName; int? ThisWeekJobID; int? ThisWeekBackingJobID; String? ThisWeekOccIso; String? ThisWeekStandingIso; int? StandingDow; bool? Moved; AgreementPlannerRow({this.AgreementID,this.Name,this.ProjectName,this.ServiceType,this.Area,this.Zip,this.Frequency,this.NextDueIso,this.NextDueLabel,this.Overdue,this.DurationMin,this.EligibleDow,this.ScheduledDow,this.WeeklyAll,this.DueThisWeek,this.AssignedCrewID,this.AssignedCrewName,this.ThisWeekJobID,this.ThisWeekBackingJobID,this.ThisWeekOccIso,this.ThisWeekStandingIso,this.StandingDow,this.Moved}); AgreementPlannerRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgreementID = json['AgreementID']; Name = json['Name']; ProjectName = json['ProjectName']; ServiceType = json['ServiceType']; Area = json['Area']; Zip = json['Zip']; Frequency = json['Frequency']; NextDueIso = json['NextDueIso']; NextDueLabel = json['NextDueLabel']; Overdue = json['Overdue']; DurationMin = json['DurationMin']; EligibleDow = JsonConverters.fromJson(json['EligibleDow'],'List',context!); ScheduledDow = json['ScheduledDow']; WeeklyAll = json['WeeklyAll']; DueThisWeek = json['DueThisWeek']; AssignedCrewID = json['AssignedCrewID']; AssignedCrewName = json['AssignedCrewName']; ThisWeekJobID = json['ThisWeekJobID']; ThisWeekBackingJobID = json['ThisWeekBackingJobID']; ThisWeekOccIso = json['ThisWeekOccIso']; ThisWeekStandingIso = json['ThisWeekStandingIso']; StandingDow = json['StandingDow']; Moved = json['Moved']; return this; } Map toJson() => { 'AgreementID': AgreementID, 'Name': Name, 'ProjectName': ProjectName, 'ServiceType': ServiceType, 'Area': Area, 'Zip': Zip, 'Frequency': Frequency, 'NextDueIso': NextDueIso, 'NextDueLabel': NextDueLabel, 'Overdue': Overdue, 'DurationMin': DurationMin, 'EligibleDow': JsonConverters.toJson(EligibleDow,'List',context!), 'ScheduledDow': ScheduledDow, 'WeeklyAll': WeeklyAll, 'DueThisWeek': DueThisWeek, 'AssignedCrewID': AssignedCrewID, 'AssignedCrewName': AssignedCrewName, 'ThisWeekJobID': ThisWeekJobID, 'ThisWeekBackingJobID': ThisWeekBackingJobID, 'ThisWeekOccIso': ThisWeekOccIso, 'ThisWeekStandingIso': ThisWeekStandingIso, 'StandingDow': StandingDow, 'Moved': Moved }; getTypeName() => "AgreementPlannerRow"; TypeContext? context = _ctx; } class AgreementPlannerCrew implements IConvertible { int? CrewID; String? CrewName; String? CrewColor; AgreementPlannerCrew({this.CrewID,this.CrewName,this.CrewColor}); AgreementPlannerCrew.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CrewID = json['CrewID']; CrewName = json['CrewName']; CrewColor = json['CrewColor']; return this; } Map toJson() => { 'CrewID': CrewID, 'CrewName': CrewName, 'CrewColor': CrewColor }; getTypeName() => "AgreementPlannerCrew"; TypeContext? context = _ctx; } class AgreementPlannerResponse implements IConvertible { ResponseStatus? ResponseStatus; String? FromIso; String? ToIso; int? WeekdayCapacity; List? Rows = []; List? Crews = []; AgreementPlannerResponse({this.ResponseStatus,this.FromIso,this.ToIso,this.WeekdayCapacity,this.Rows,this.Crews}); AgreementPlannerResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); FromIso = json['FromIso']; ToIso = json['ToIso']; WeekdayCapacity = json['WeekdayCapacity']; Rows = JsonConverters.fromJson(json['Rows'],'List',context!); Crews = JsonConverters.fromJson(json['Crews'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'FromIso': FromIso, 'ToIso': ToIso, 'WeekdayCapacity': WeekdayCapacity, 'Rows': JsonConverters.toJson(Rows,'List',context!), 'Crews': JsonConverters.toJson(Crews,'List',context!) }; getTypeName() => "AgreementPlannerResponse"; TypeContext? context = _ctx; } // @Route("/v1/serviceagreement/planner", "GET,OPTIONS") class AgreementPlannerRequest implements IReturn, IConvertible, IGet { String? From; String? Scope; AgreementPlannerRequest({this.From,this.Scope}); AgreementPlannerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { From = json['From']; Scope = json['Scope']; return this; } Map toJson() => { 'From': From, 'Scope': Scope }; createResponse() => AgreementPlannerResponse(); getResponseTypeName() => "AgreementPlannerResponse"; getTypeName() => "AgreementPlannerRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgreementPlannerRow': TypeInfo(TypeOf.Class, create:() => AgreementPlannerRow()), 'AgreementPlannerCrew': TypeInfo(TypeOf.Class, create:() => AgreementPlannerCrew()), 'AgreementPlannerResponse': TypeInfo(TypeOf.Class, create:() => AgreementPlannerResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgreementPlannerRequest': TypeInfo(TypeOf.Class, create:() => AgreementPlannerRequest()), });