/* Options: Date: 2025-12-06 06:55:45 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: JobScheduleRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CalendarEvent implements IConvertible { int? CalendarEventId; String? CalendarId; DateTime? EventStart; DateTime? EventEnd; String? Location; String? Summary; String? Description; int? EventTypeId; bool? Recurrence; String? RecurrenceFrequency; String? RecurrenceBy; String? RecurrenceByValue; DateTime? RecurrenceUntil; String? CreatedBy; String? CreatedByName; DateTime? DateCreated; String? ModifiedBy; DateTime? DateModified; bool? Deleted; String? TimeZone; int? Offset; DateTime? TextReminderSentDate; bool? Confirmed; String? ConfirmationTextId; String? FirstTextReminderId; String? SecondTextReminderId; String? LocationUID; DateTime? AgentReminderSentDate; int? ContactId; bool? IsPrivate; int? ProjectID; int? JobID; DateTime? ProjectStartDate; DateTime? ProjectEndDate; DateTime? MaxCrewEndDate; DateTime? MaxEquipmentEndDate; String? CheckInId; bool? AllDay; String? JobName; String? JobStatusName; int? JobStatusId; String? ProjectName; int? ResourceId; String? ResourceName; DateTime? Original_EventStart; bool? Original_Recurrence; String? Original_RecurrenceFrequency; String? Original_RecurrenceBy; String? Original_RecurrenceByValue; DateTime? Original_RecurrenceUntil; String? Checksum; CalendarEvent({this.CalendarEventId,this.CalendarId,this.EventStart,this.EventEnd,this.Location,this.Summary,this.Description,this.EventTypeId,this.Recurrence,this.RecurrenceFrequency,this.RecurrenceBy,this.RecurrenceByValue,this.RecurrenceUntil,this.CreatedBy,this.CreatedByName,this.DateCreated,this.ModifiedBy,this.DateModified,this.Deleted,this.TimeZone,this.Offset,this.TextReminderSentDate,this.Confirmed,this.ConfirmationTextId,this.FirstTextReminderId,this.SecondTextReminderId,this.LocationUID,this.AgentReminderSentDate,this.ContactId,this.IsPrivate,this.ProjectID,this.JobID,this.ProjectStartDate,this.ProjectEndDate,this.MaxCrewEndDate,this.MaxEquipmentEndDate,this.CheckInId,this.AllDay,this.JobName,this.JobStatusName,this.JobStatusId,this.ProjectName,this.ResourceId,this.ResourceName,this.Original_EventStart,this.Original_Recurrence,this.Original_RecurrenceFrequency,this.Original_RecurrenceBy,this.Original_RecurrenceByValue,this.Original_RecurrenceUntil,this.Checksum}); CalendarEvent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CalendarEventId = json['CalendarEventId']; CalendarId = json['CalendarId']; EventStart = JsonConverters.fromJson(json['EventStart'],'DateTime',context!); EventEnd = JsonConverters.fromJson(json['EventEnd'],'DateTime',context!); Location = json['Location']; Summary = json['Summary']; Description = json['Description']; EventTypeId = json['EventTypeId']; Recurrence = json['Recurrence']; RecurrenceFrequency = json['RecurrenceFrequency']; RecurrenceBy = json['RecurrenceBy']; RecurrenceByValue = json['RecurrenceByValue']; RecurrenceUntil = JsonConverters.fromJson(json['RecurrenceUntil'],'DateTime',context!); CreatedBy = json['CreatedBy']; CreatedByName = json['CreatedByName']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); ModifiedBy = json['ModifiedBy']; DateModified = JsonConverters.fromJson(json['DateModified'],'DateTime',context!); Deleted = json['Deleted']; TimeZone = json['TimeZone']; Offset = json['Offset']; TextReminderSentDate = JsonConverters.fromJson(json['TextReminderSentDate'],'DateTime',context!); Confirmed = json['Confirmed']; ConfirmationTextId = json['ConfirmationTextId']; FirstTextReminderId = json['FirstTextReminderId']; SecondTextReminderId = json['SecondTextReminderId']; LocationUID = json['LocationUID']; AgentReminderSentDate = JsonConverters.fromJson(json['AgentReminderSentDate'],'DateTime',context!); ContactId = json['ContactId']; IsPrivate = json['IsPrivate']; ProjectID = json['ProjectID']; JobID = json['JobID']; ProjectStartDate = JsonConverters.fromJson(json['ProjectStartDate'],'DateTime',context!); ProjectEndDate = JsonConverters.fromJson(json['ProjectEndDate'],'DateTime',context!); MaxCrewEndDate = JsonConverters.fromJson(json['MaxCrewEndDate'],'DateTime',context!); MaxEquipmentEndDate = JsonConverters.fromJson(json['MaxEquipmentEndDate'],'DateTime',context!); CheckInId = json['CheckInId']; AllDay = json['AllDay']; JobName = json['JobName']; JobStatusName = json['JobStatusName']; JobStatusId = json['JobStatusId']; ProjectName = json['ProjectName']; ResourceId = json['ResourceId']; ResourceName = json['ResourceName']; Original_EventStart = JsonConverters.fromJson(json['Original_EventStart'],'DateTime',context!); Original_Recurrence = json['Original_Recurrence']; Original_RecurrenceFrequency = json['Original_RecurrenceFrequency']; Original_RecurrenceBy = json['Original_RecurrenceBy']; Original_RecurrenceByValue = json['Original_RecurrenceByValue']; Original_RecurrenceUntil = JsonConverters.fromJson(json['Original_RecurrenceUntil'],'DateTime',context!); Checksum = json['Checksum']; return this; } Map toJson() => { 'CalendarEventId': CalendarEventId, 'CalendarId': CalendarId, 'EventStart': JsonConverters.toJson(EventStart,'DateTime',context!), 'EventEnd': JsonConverters.toJson(EventEnd,'DateTime',context!), 'Location': Location, 'Summary': Summary, 'Description': Description, 'EventTypeId': EventTypeId, 'Recurrence': Recurrence, 'RecurrenceFrequency': RecurrenceFrequency, 'RecurrenceBy': RecurrenceBy, 'RecurrenceByValue': RecurrenceByValue, 'RecurrenceUntil': JsonConverters.toJson(RecurrenceUntil,'DateTime',context!), 'CreatedBy': CreatedBy, 'CreatedByName': CreatedByName, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'ModifiedBy': ModifiedBy, 'DateModified': JsonConverters.toJson(DateModified,'DateTime',context!), 'Deleted': Deleted, 'TimeZone': TimeZone, 'Offset': Offset, 'TextReminderSentDate': JsonConverters.toJson(TextReminderSentDate,'DateTime',context!), 'Confirmed': Confirmed, 'ConfirmationTextId': ConfirmationTextId, 'FirstTextReminderId': FirstTextReminderId, 'SecondTextReminderId': SecondTextReminderId, 'LocationUID': LocationUID, 'AgentReminderSentDate': JsonConverters.toJson(AgentReminderSentDate,'DateTime',context!), 'ContactId': ContactId, 'IsPrivate': IsPrivate, 'ProjectID': ProjectID, 'JobID': JobID, 'ProjectStartDate': JsonConverters.toJson(ProjectStartDate,'DateTime',context!), 'ProjectEndDate': JsonConverters.toJson(ProjectEndDate,'DateTime',context!), 'MaxCrewEndDate': JsonConverters.toJson(MaxCrewEndDate,'DateTime',context!), 'MaxEquipmentEndDate': JsonConverters.toJson(MaxEquipmentEndDate,'DateTime',context!), 'CheckInId': CheckInId, 'AllDay': AllDay, 'JobName': JobName, 'JobStatusName': JobStatusName, 'JobStatusId': JobStatusId, 'ProjectName': ProjectName, 'ResourceId': ResourceId, 'ResourceName': ResourceName, 'Original_EventStart': JsonConverters.toJson(Original_EventStart,'DateTime',context!), 'Original_Recurrence': Original_Recurrence, 'Original_RecurrenceFrequency': Original_RecurrenceFrequency, 'Original_RecurrenceBy': Original_RecurrenceBy, 'Original_RecurrenceByValue': Original_RecurrenceByValue, 'Original_RecurrenceUntil': JsonConverters.toJson(Original_RecurrenceUntil,'DateTime',context!), 'Checksum': Checksum }; getTypeName() => "CalendarEvent"; TypeContext? context = _ctx; } class JobScheduleResponse implements IConvertible { ResponseStatus? ResponseStatus; List? JobSchedule = []; JobScheduleResponse({this.ResponseStatus,this.JobSchedule}); JobScheduleResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); JobSchedule = JsonConverters.fromJson(json['JobSchedule'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'JobSchedule': JsonConverters.toJson(JobSchedule,'List',context!) }; getTypeName() => "JobScheduleResponse"; TypeContext? context = _ctx; } // @Route("/v1/Job/Schedule/{JobID}", "GET,POST,PUT,DELETE,OPTIONS") class JobScheduleRequest implements IReturn, IConvertible, IGet { int? JobID; JobScheduleRequest({this.JobID}); JobScheduleRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { JobID = json['JobID']; return this; } Map toJson() => { 'JobID': JobID }; createResponse() => JobScheduleResponse(); getResponseTypeName() => "JobScheduleResponse"; getTypeName() => "JobScheduleRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CalendarEvent': TypeInfo(TypeOf.Class, create:() => CalendarEvent()), 'JobScheduleResponse': TypeInfo(TypeOf.Class, create:() => JobScheduleResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'JobScheduleRequest': TypeInfo(TypeOf.Class, create:() => JobScheduleRequest()), });