/* Options: Date: 2026-11-08 12:02:20 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UserObligationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ObligationLineItem implements IConvertible { int? ChartOfAccountId; String? ChartOfAccountRefId; double? Amount; ObligationLineItem({this.ChartOfAccountId,this.ChartOfAccountRefId,this.Amount}); ObligationLineItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ChartOfAccountId = json['ChartOfAccountId']; ChartOfAccountRefId = json['ChartOfAccountRefId']; Amount = JsonConverters.toDouble(json['Amount']); return this; } Map toJson() => { 'ChartOfAccountId': ChartOfAccountId, 'ChartOfAccountRefId': ChartOfAccountRefId, 'Amount': Amount }; getTypeName() => "ObligationLineItem"; TypeContext? context = _ctx; } class Obligation implements IConvertible { DateTime? CreatedDate; DateTime? LastUpdateDate; bool? IsActive; List? LineItems; Obligation({this.CreatedDate,this.LastUpdateDate,this.IsActive,this.LineItems}); Obligation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); LastUpdateDate = JsonConverters.fromJson(json['LastUpdateDate'],'DateTime',context!); IsActive = json['IsActive']; LineItems = JsonConverters.fromJson(json['LineItems'],'List',context!); return this; } Map toJson() => { 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'LastUpdateDate': JsonConverters.toJson(LastUpdateDate,'DateTime',context!), 'IsActive': IsActive, 'LineItems': JsonConverters.toJson(LineItems,'List',context!) }; getTypeName() => "Obligation"; TypeContext? context = _ctx; } class ObligationYear implements IConvertible { int? FiscalYear; List? Obligations; ObligationYear({this.FiscalYear,this.Obligations}); ObligationYear.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FiscalYear = json['FiscalYear']; Obligations = JsonConverters.fromJson(json['Obligations'],'List',context!); return this; } Map toJson() => { 'FiscalYear': FiscalYear, 'Obligations': JsonConverters.toJson(Obligations,'List',context!) }; getTypeName() => "ObligationYear"; TypeContext? context = _ctx; } class ObligationLineItem implements IConvertible { String? ChartOfAccountRefId; double? Amount; ObligationLineItem({this.ChartOfAccountRefId,this.Amount}); ObligationLineItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ChartOfAccountRefId = json['ChartOfAccountRefId']; Amount = JsonConverters.toDouble(json['Amount']); return this; } Map toJson() => { 'ChartOfAccountRefId': ChartOfAccountRefId, 'Amount': Amount }; getTypeName() => "ObligationLineItem"; TypeContext? context = _ctx; } class ObligationUser implements IConvertible { String? UserId; String? GroupId; List? FiscalYears; ObligationUser({this.UserId,this.GroupId,this.FiscalYears}); ObligationUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; GroupId = json['GroupId']; FiscalYears = JsonConverters.fromJson(json['FiscalYears'],'List',context!); return this; } Map toJson() => { 'UserId': UserId, 'GroupId': GroupId, 'FiscalYears': JsonConverters.toJson(FiscalYears,'List',context!) }; getTypeName() => "ObligationUser"; TypeContext? context = _ctx; } // @Route("/invoices/recurringInvoices/obligation", "GET") class UserObligationsRequest implements IReturn, IConvertible { String? GroupId; String? UserId; int? FiscalYear; bool? ShowHistory; UserObligationsRequest({this.GroupId,this.UserId,this.FiscalYear,this.ShowHistory}); UserObligationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GroupId = json['GroupId']; UserId = json['UserId']; FiscalYear = json['FiscalYear']; ShowHistory = json['ShowHistory']; return this; } Map toJson() => { 'GroupId': GroupId, 'UserId': UserId, 'FiscalYear': FiscalYear, 'ShowHistory': ShowHistory }; createResponse() => ObligationUser(); getResponseTypeName() => "ObligationUser"; getTypeName() => "UserObligationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'ObligationLineItem': TypeInfo(TypeOf.Class, create:() => ObligationLineItem()), 'Obligation': TypeInfo(TypeOf.Class, create:() => Obligation()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ObligationYear': TypeInfo(TypeOf.Class, create:() => ObligationYear()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ObligationUser': TypeInfo(TypeOf.Class, create:() => ObligationUser()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserObligationsRequest': TypeInfo(TypeOf.Class, create:() => UserObligationsRequest()), });