/* Options: Date: 2025-12-06 07:30:23 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: SlotNoteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SlotNote implements IConvertible { int? ID; int? SlotDistrictID; String? Note; DateTime? DateCreated; int? CreatedBy; String? AgentName; bool? IsAdminNote; bool? ApprovalPending; SlotNote({this.ID,this.SlotDistrictID,this.Note,this.DateCreated,this.CreatedBy,this.AgentName,this.IsAdminNote,this.ApprovalPending}); SlotNote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; SlotDistrictID = json['SlotDistrictID']; Note = json['Note']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); CreatedBy = json['CreatedBy']; AgentName = json['AgentName']; IsAdminNote = json['IsAdminNote']; ApprovalPending = json['ApprovalPending']; return this; } Map toJson() => { 'ID': ID, 'SlotDistrictID': SlotDistrictID, 'Note': Note, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'CreatedBy': CreatedBy, 'AgentName': AgentName, 'IsAdminNote': IsAdminNote, 'ApprovalPending': ApprovalPending }; getTypeName() => "SlotNote"; TypeContext? context = _ctx; } class SlotNoteResponse implements IConvertible { ResponseStatus? ResponseStatus; List? SlotNotes = []; SlotNoteResponse({this.ResponseStatus,this.SlotNotes}); SlotNoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); SlotNotes = JsonConverters.fromJson(json['SlotNotes'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'SlotNotes': JsonConverters.toJson(SlotNotes,'List',context!) }; getTypeName() => "SlotNoteResponse"; TypeContext? context = _ctx; } // @Route("/v1/SlotNote", "POST,OPTIONS") // @Route("/v1/SlotNote/GetAllBySlotDistrictID/{SlotDistrictID}", "GET") class SlotNoteRequest implements IReturn, IConvertible, IGet { int? SlotDistrictID; SlotNote? SlotNote; SlotNoteRequest({this.SlotDistrictID,this.SlotNote}); SlotNoteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SlotDistrictID = json['SlotDistrictID']; SlotNote = JsonConverters.fromJson(json['SlotNote'],'SlotNote',context!); return this; } Map toJson() => { 'SlotDistrictID': SlotDistrictID, 'SlotNote': JsonConverters.toJson(SlotNote,'SlotNote',context!) }; createResponse() => SlotNoteResponse(); getResponseTypeName() => "SlotNoteResponse"; getTypeName() => "SlotNoteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SlotNote': TypeInfo(TypeOf.Class, create:() => SlotNote()), 'SlotNoteResponse': TypeInfo(TypeOf.Class, create:() => SlotNoteResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SlotNoteRequest': TypeInfo(TypeOf.Class, create:() => SlotNoteRequest()), });