/* Options: Date: 2026-11-02 10:57:11 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: BranchApptCreateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class BranchApptNewContact implements IConvertible { String? Name; String? Phone; String? Email; BranchApptNewContact({this.Name,this.Phone,this.Email}); BranchApptNewContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Phone = json['Phone']; Email = json['Email']; return this; } Map toJson() => { 'Name': Name, 'Phone': Phone, 'Email': Email }; getTypeName() => "BranchApptNewContact"; TypeContext? context = _ctx; } class BranchApptWriteResponse implements IConvertible { ResponseStatus? ResponseStatus; int? CalendarEventId; String? CheckInId; DateTime? StartLocal; DateTime? EndLocal; int? ContactId; bool? ContactExisted; bool? Notified; int? Open; int? Capacity; BranchApptWriteResponse({this.ResponseStatus,this.CalendarEventId,this.CheckInId,this.StartLocal,this.EndLocal,this.ContactId,this.ContactExisted,this.Notified,this.Open,this.Capacity}); BranchApptWriteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); CalendarEventId = json['CalendarEventId']; CheckInId = json['CheckInId']; StartLocal = JsonConverters.fromJson(json['StartLocal'],'DateTime',context!); EndLocal = JsonConverters.fromJson(json['EndLocal'],'DateTime',context!); ContactId = json['ContactId']; ContactExisted = json['ContactExisted']; Notified = json['Notified']; Open = json['Open']; Capacity = json['Capacity']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'CalendarEventId': CalendarEventId, 'CheckInId': CheckInId, 'StartLocal': JsonConverters.toJson(StartLocal,'DateTime',context!), 'EndLocal': JsonConverters.toJson(EndLocal,'DateTime',context!), 'ContactId': ContactId, 'ContactExisted': ContactExisted, 'Notified': Notified, 'Open': Open, 'Capacity': Capacity }; getTypeName() => "BranchApptWriteResponse"; TypeContext? context = _ctx; } // @Route("/v1/queue/appointments", "POST,OPTIONS") class BranchApptCreateRequest implements IReturn, IConvertible, IPost { String? LocationId; String? Date; String? StartLocal; List? LineIds = []; int? ContactId; BranchApptNewContact? NewContact; String? Via; bool? Notify; String? Note; bool? Overbook; BranchApptCreateRequest({this.LocationId,this.Date,this.StartLocal,this.LineIds,this.ContactId,this.NewContact,this.Via,this.Notify,this.Note,this.Overbook}); BranchApptCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LocationId = json['LocationId']; Date = json['Date']; StartLocal = json['StartLocal']; LineIds = JsonConverters.fromJson(json['LineIds'],'List',context!); ContactId = json['ContactId']; NewContact = JsonConverters.fromJson(json['NewContact'],'BranchApptNewContact',context!); Via = json['Via']; Notify = json['Notify']; Note = json['Note']; Overbook = json['Overbook']; return this; } Map toJson() => { 'LocationId': LocationId, 'Date': Date, 'StartLocal': StartLocal, 'LineIds': JsonConverters.toJson(LineIds,'List',context!), 'ContactId': ContactId, 'NewContact': JsonConverters.toJson(NewContact,'BranchApptNewContact',context!), 'Via': Via, 'Notify': Notify, 'Note': Note, 'Overbook': Overbook }; createResponse() => BranchApptWriteResponse(); getResponseTypeName() => "BranchApptWriteResponse"; getTypeName() => "BranchApptCreateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'BranchApptNewContact': TypeInfo(TypeOf.Class, create:() => BranchApptNewContact()), 'BranchApptWriteResponse': TypeInfo(TypeOf.Class, create:() => BranchApptWriteResponse()), 'BranchApptCreateRequest': TypeInfo(TypeOf.Class, create:() => BranchApptCreateRequest()), });