/* Options: Date: 2025-12-06 05:18:17 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: CalendarRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum CalendarType { All, Pera, Google, } enum CalendarFormat { Standard, ICS, } // @Route("/v1/Calendar/{CalendarId}", "GET,OPTIONS") // @Route("/v1/Calendar/{CalendarId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/CrewMember/Availability/{ContactId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{ProjectId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{ProjectId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/{ProjectId}/CalendarEventId/{CalendarEventId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/{ProjectId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/{ProjectId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/{ProjectId}/CalendarEventId/{CalendarEventId}", "GET,OPTIONS") // @Route("/v1/Calendar/Project/ExpandRecurring/ExpandAll/{ProjectId}/{StartDate}/{EndDate}", "GET,OPTIONS") // @Route("/v1/Calendar/Location/{LocationId}", "GET,OPTIONS") // @Route("/v1/Calendar/Agent/{AgentId}", "GET,OPTIONS") class CalendarRequest implements IConvertible, IGet { String? CalendarId; int? CalendarEventId; CalendarType? CalendarType; CalendarFormat? CalendarFormat; int? ContactId; DateTime? StartDate; DateTime? EndDate; int? ProjectId; String? LocationId; int? AgentId; bool? ExpandRecurringEvents; bool? ExpandAll; CalendarRequest({this.CalendarId,this.CalendarEventId,this.CalendarType,this.CalendarFormat,this.ContactId,this.StartDate,this.EndDate,this.ProjectId,this.LocationId,this.AgentId,this.ExpandRecurringEvents,this.ExpandAll}); CalendarRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CalendarId = json['CalendarId']; CalendarEventId = json['CalendarEventId']; CalendarType = JsonConverters.fromJson(json['CalendarType'],'CalendarType',context!); CalendarFormat = JsonConverters.fromJson(json['CalendarFormat'],'CalendarFormat',context!); ContactId = json['ContactId']; StartDate = JsonConverters.fromJson(json['StartDate'],'DateTime',context!); EndDate = JsonConverters.fromJson(json['EndDate'],'DateTime',context!); ProjectId = json['ProjectId']; LocationId = json['LocationId']; AgentId = json['AgentId']; ExpandRecurringEvents = json['ExpandRecurringEvents']; ExpandAll = json['ExpandAll']; return this; } Map toJson() => { 'CalendarId': CalendarId, 'CalendarEventId': CalendarEventId, 'CalendarType': JsonConverters.toJson(CalendarType,'CalendarType',context!), 'CalendarFormat': JsonConverters.toJson(CalendarFormat,'CalendarFormat',context!), 'ContactId': ContactId, 'StartDate': JsonConverters.toJson(StartDate,'DateTime',context!), 'EndDate': JsonConverters.toJson(EndDate,'DateTime',context!), 'ProjectId': ProjectId, 'LocationId': LocationId, 'AgentId': AgentId, 'ExpandRecurringEvents': ExpandRecurringEvents, 'ExpandAll': ExpandAll }; getTypeName() => "CalendarRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CalendarType': TypeInfo(TypeOf.Enum, enumValues:CalendarType.values), 'CalendarFormat': TypeInfo(TypeOf.Enum, enumValues:CalendarFormat.values), 'CalendarRequest': TypeInfo(TypeOf.Class, create:() => CalendarRequest()), });