/* Options: Date: 2025-12-06 09:24:37 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: CalendarLinkRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CalendarLink implements IConvertible { int? Id; String? CalendarId; String? FirstName; String? LastName; int? AgentId; bool? Active; CalendarLink({this.Id,this.CalendarId,this.FirstName,this.LastName,this.AgentId,this.Active}); CalendarLink.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CalendarId = json['CalendarId']; FirstName = json['FirstName']; LastName = json['LastName']; AgentId = json['AgentId']; Active = json['Active']; return this; } Map toJson() => { 'Id': Id, 'CalendarId': CalendarId, 'FirstName': FirstName, 'LastName': LastName, 'AgentId': AgentId, 'Active': Active }; getTypeName() => "CalendarLink"; TypeContext? context = _ctx; } class CalendarLinkResponse implements IConvertible { ResponseStatus? ResponseStatus; List? CalendarLink = []; CalendarLinkResponse({this.ResponseStatus,this.CalendarLink}); CalendarLinkResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); CalendarLink = JsonConverters.fromJson(json['CalendarLink'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'CalendarLink': JsonConverters.toJson(CalendarLink,'List',context!) }; getTypeName() => "CalendarLinkResponse"; TypeContext? context = _ctx; } // @Route("/v1/CalendarLink/{AgentId}", "GET,OPTIONS") // @Route("/v1/CalendarLink/{LinkAgentId}/{AgentId}", "POST,OPTIONS") // @Route("/v1/CalendarLink/{Id}/{Active}", "PUT,OPTIONS") // @Route("/v1/CalendarLink/{Id}", "DELETE,OPTIONS") class CalendarLinkRequest implements IReturn, IConvertible, IGet { int? AgentId; int? LinkAgentId; int? Id; bool? Active; CalendarLinkRequest({this.AgentId,this.LinkAgentId,this.Id,this.Active}); CalendarLinkRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; LinkAgentId = json['LinkAgentId']; Id = json['Id']; Active = json['Active']; return this; } Map toJson() => { 'AgentId': AgentId, 'LinkAgentId': LinkAgentId, 'Id': Id, 'Active': Active }; createResponse() => CalendarLinkResponse(); getResponseTypeName() => "CalendarLinkResponse"; getTypeName() => "CalendarLinkRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CalendarLink': TypeInfo(TypeOf.Class, create:() => CalendarLink()), 'CalendarLinkResponse': TypeInfo(TypeOf.Class, create:() => CalendarLinkResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CalendarLinkRequest': TypeInfo(TypeOf.Class, create:() => CalendarLinkRequest()), });