/* Options: Date: 2024-12-22 21:08:53 Version: 8.51 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: DeleteInvoiceItems.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class InvoiceItems implements IConvertible { int? invoiceLineId; int? invoiceId; int? trackId; double? unitPrice; int? quantity; InvoiceItems({this.invoiceLineId,this.invoiceId,this.trackId,this.unitPrice,this.quantity}); InvoiceItems.fromJson(Map json) { fromMap(json); } fromMap(Map json) { invoiceLineId = json['invoiceLineId']; invoiceId = json['invoiceId']; trackId = json['trackId']; unitPrice = JsonConverters.toDouble(json['unitPrice']); quantity = json['quantity']; return this; } Map toJson() => { 'invoiceLineId': invoiceLineId, 'invoiceId': invoiceId, 'trackId': trackId, 'unitPrice': unitPrice, 'quantity': quantity }; getTypeName() => "InvoiceItems"; TypeContext? context = _ctx; } // @Route("/invoiceitems/{InvoiceLineId}", "DELETE") class DeleteInvoiceItems implements IReturn, IDelete, IDeleteDb, IConvertible { int? invoiceLineId; DeleteInvoiceItems({this.invoiceLineId}); DeleteInvoiceItems.fromJson(Map json) { fromMap(json); } fromMap(Map json) { invoiceLineId = json['invoiceLineId']; return this; } Map toJson() => { 'invoiceLineId': invoiceLineId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "DeleteInvoiceItems"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'InvoiceItems': TypeInfo(TypeOf.Class, create:() => InvoiceItems()), 'DeleteInvoiceItems': TypeInfo(TypeOf.Class, create:() => DeleteInvoiceItems()), });