/* Options: Date: 2026-06-22 22:53:42 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: AgreementCreditsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreditLedger implements IConvertible { int? CreditLedgerID; String? TenantId; String? BranchId; int? AgreementID; int? ProjectID; int? AgreementJobID; double? Amount; String? Reason; String? Status; String? CreatedBy; DateTime? CreatedAt; DateTime? AppliedAt; String? AgreementName; String? ProjectName; CreditLedger({this.CreditLedgerID,this.TenantId,this.BranchId,this.AgreementID,this.ProjectID,this.AgreementJobID,this.Amount,this.Reason,this.Status,this.CreatedBy,this.CreatedAt,this.AppliedAt,this.AgreementName,this.ProjectName}); CreditLedger.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CreditLedgerID = json['CreditLedgerID']; TenantId = json['TenantId']; BranchId = json['BranchId']; AgreementID = json['AgreementID']; ProjectID = json['ProjectID']; AgreementJobID = json['AgreementJobID']; Amount = JsonConverters.toDouble(json['Amount']); Reason = json['Reason']; Status = json['Status']; CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); AppliedAt = JsonConverters.fromJson(json['AppliedAt'],'DateTime',context!); AgreementName = json['AgreementName']; ProjectName = json['ProjectName']; return this; } Map toJson() => { 'CreditLedgerID': CreditLedgerID, 'TenantId': TenantId, 'BranchId': BranchId, 'AgreementID': AgreementID, 'ProjectID': ProjectID, 'AgreementJobID': AgreementJobID, 'Amount': Amount, 'Reason': Reason, 'Status': Status, 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'AppliedAt': JsonConverters.toJson(AppliedAt,'DateTime',context!), 'AgreementName': AgreementName, 'ProjectName': ProjectName }; getTypeName() => "CreditLedger"; TypeContext? context = _ctx; } class AgreementCreditsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Credits = []; AgreementCreditsResponse({this.ResponseStatus,this.Credits}); AgreementCreditsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Credits = JsonConverters.fromJson(json['Credits'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Credits': JsonConverters.toJson(Credits,'List',context!) }; getTypeName() => "AgreementCreditsResponse"; TypeContext? context = _ctx; } // @Route("/v1/serviceagreement/credits", "GET,OPTIONS") class AgreementCreditsRequest implements IReturn, IConvertible, IGet { AgreementCreditsRequest(); AgreementCreditsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AgreementCreditsResponse(); getResponseTypeName() => "AgreementCreditsResponse"; getTypeName() => "AgreementCreditsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CreditLedger': TypeInfo(TypeOf.Class, create:() => CreditLedger()), 'AgreementCreditsResponse': TypeInfo(TypeOf.Class, create:() => AgreementCreditsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgreementCreditsRequest': TypeInfo(TypeOf.Class, create:() => AgreementCreditsRequest()), });