/* Options: Date: 2025-12-06 07:06:35 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: AdjustmentReportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Adjustment implements IConvertible { int? ID; DateTime? AdjustmentDate; String? Agent; String? Reason; double? Amount; String? Approved; String? AdjType; String? Income; String? Paid; String? BalanceForward; String? BalanceDate; Adjustment({this.ID,this.AdjustmentDate,this.Agent,this.Reason,this.Amount,this.Approved,this.AdjType,this.Income,this.Paid,this.BalanceForward,this.BalanceDate}); Adjustment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; AdjustmentDate = JsonConverters.fromJson(json['AdjustmentDate'],'DateTime',context!); Agent = json['Agent']; Reason = json['Reason']; Amount = JsonConverters.toDouble(json['Amount']); Approved = json['Approved']; AdjType = json['AdjType']; Income = json['Income']; Paid = json['Paid']; BalanceForward = json['BalanceForward']; BalanceDate = json['BalanceDate']; return this; } Map toJson() => { 'ID': ID, 'AdjustmentDate': JsonConverters.toJson(AdjustmentDate,'DateTime',context!), 'Agent': Agent, 'Reason': Reason, 'Amount': Amount, 'Approved': Approved, 'AdjType': AdjType, 'Income': Income, 'Paid': Paid, 'BalanceForward': BalanceForward, 'BalanceDate': BalanceDate }; getTypeName() => "Adjustment"; TypeContext? context = _ctx; } class AdjustmentReportResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ReportData = []; AdjustmentReportResponse({this.ResponseStatus,this.ReportData}); AdjustmentReportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ReportData = JsonConverters.fromJson(json['ReportData'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ReportData': JsonConverters.toJson(ReportData,'List',context!) }; getTypeName() => "AdjustmentReportResponse"; TypeContext? context = _ctx; } // @Route("/v1/AdjustmentReport/{ParamStartDate}/{ParamEndDate}", "GET") class AdjustmentReportRequest implements IReturn, IConvertible, IGet { DateTime? ParamStartDate; DateTime? ParamEndDate; AdjustmentReportRequest({this.ParamStartDate,this.ParamEndDate}); AdjustmentReportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ParamStartDate = JsonConverters.fromJson(json['ParamStartDate'],'DateTime',context!); ParamEndDate = JsonConverters.fromJson(json['ParamEndDate'],'DateTime',context!); return this; } Map toJson() => { 'ParamStartDate': JsonConverters.toJson(ParamStartDate,'DateTime',context!), 'ParamEndDate': JsonConverters.toJson(ParamEndDate,'DateTime',context!) }; createResponse() => AdjustmentReportResponse(); getResponseTypeName() => "AdjustmentReportResponse"; getTypeName() => "AdjustmentReportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Adjustment': TypeInfo(TypeOf.Class, create:() => Adjustment()), 'AdjustmentReportResponse': TypeInfo(TypeOf.Class, create:() => AdjustmentReportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AdjustmentReportRequest': TypeInfo(TypeOf.Class, create:() => AdjustmentReportRequest()), });