/* Options: Date: 2026-09-01 21:47:44 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryInvoiceItems.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class InvoiceItems implements IConvertible { int invoiceLineId = 0; int invoiceId = 0; int trackId = 0; double unitPrice = 0; int quantity = 0; InvoiceItems({this.invoiceLineId=0,this.invoiceId=0,this.trackId=0,this.unitPrice=0,this.quantity=0}); InvoiceItems.fromJson(Map json) { fromMap(json); } fromMap(Map json) { invoiceLineId = json['invoiceLineId'] ?? 0; invoiceId = json['invoiceId'] ?? 0; trackId = json['trackId'] ?? 0; unitPrice = JsonConverters.toDouble(json['unitPrice']) ?? 0; quantity = json['quantity'] ?? 0; return this; } Map toJson() => { 'invoiceLineId': invoiceLineId, 'invoiceId': invoiceId, 'trackId': trackId, 'unitPrice': unitPrice, 'quantity': quantity }; getTypeName() => "InvoiceItems"; TypeContext? context = _ctx; } // @Route("/invoiceitems", "GET") // @Route("/invoiceitems/{InvoiceLineId}", "GET") class QueryInvoiceItems extends QueryDb implements IReturn>, IGet, IConvertible { int? invoiceLineId; QueryInvoiceItems({this.invoiceLineId}); QueryInvoiceItems.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); invoiceLineId = json['invoiceLineId']; return this; } Map toJson() => super.toJson()..addAll({ 'invoiceLineId': invoiceLineId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryInvoiceItems"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'InvoiceItems': TypeInfo(TypeOf.Class, create:() => InvoiceItems()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryInvoiceItems': TypeInfo(TypeOf.Class, create:() => QueryInvoiceItems()), 'List': TypeInfo(TypeOf.Class, create:() => []), });