/* Options: Date: 2025-09-07 09:48:28 Version: 8.81 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://account.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: BillingHistory.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Invoice implements IConvertible { int? orderId; DateTime? date; String? description; int? itemQuantity; int? total; bool? paid; Invoice({this.orderId,this.date,this.description,this.itemQuantity,this.total,this.paid}); Invoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { orderId = json['orderId']; date = JsonConverters.fromJson(json['date'],'DateTime',context!); description = json['description']; itemQuantity = json['itemQuantity']; total = json['total']; paid = json['paid']; return this; } Map toJson() => { 'orderId': orderId, 'date': JsonConverters.toJson(date,'DateTime',context!), 'description': description, 'itemQuantity': itemQuantity, 'total': total, 'paid': paid }; getTypeName() => "Invoice"; TypeContext? context = _ctx; } class BillingHistoryResponse implements IConvertible { List? invoices; ResponseStatus? responseStatus; BillingHistoryResponse({this.invoices,this.responseStatus}); BillingHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { invoices = JsonConverters.fromJson(json['invoices'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'invoices': JsonConverters.toJson(invoices,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "BillingHistoryResponse"; TypeContext? context = _ctx; } // @Route("/account/billing") // @Route("/BillingHistory") class BillingHistory implements IReturn, IConvertible, IPost { BillingHistory(); BillingHistory.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => BillingHistoryResponse(); getResponseTypeName() => "BillingHistoryResponse"; getTypeName() => "BillingHistory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: { 'Invoice': TypeInfo(TypeOf.Class, create:() => Invoice()), 'BillingHistoryResponse': TypeInfo(TypeOf.Class, create:() => BillingHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BillingHistory': TypeInfo(TypeOf.Class, create:() => BillingHistory()), });