/* Options: Date: 2025-12-06 05:26:58 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: KpiAppointmentsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class KpiResponse implements IConvertible { ResponseStatus? ResponseStatus; KpiResponse({this.ResponseStatus}); KpiResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "KpiResponse"; TypeContext? context = _ctx; } // @Route("/v1/Kpi/Appointments/{FromDate}/{ToDate}", "GET,POST,PUT,DELETE,OPTIONS") class KpiAppointmentsRequest implements IReturn, IConvertible, IGet { String? LocationId; String? AgentId; DateTime? FromDate; DateTime? ToDate; KpiAppointmentsRequest({this.LocationId,this.AgentId,this.FromDate,this.ToDate}); KpiAppointmentsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LocationId = json['LocationId']; AgentId = json['AgentId']; FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); return this; } Map toJson() => { 'LocationId': LocationId, 'AgentId': AgentId, 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!) }; createResponse() => KpiResponse(); getResponseTypeName() => "KpiResponse"; getTypeName() => "KpiAppointmentsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'KpiResponse': TypeInfo(TypeOf.Class, create:() => KpiResponse()), 'KpiAppointmentsRequest': TypeInfo(TypeOf.Class, create:() => KpiAppointmentsRequest()), });