/* Options: Date: 2024-12-22 21:51:57 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: PatchInvoiceItems.* //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}", "PATCH") class PatchInvoiceItems implements IReturn, IPatch, IPatchDb, IConvertible { int? invoiceLineId; int? invoiceId; int? trackId; double? unitPrice; int? quantity; PatchInvoiceItems({this.invoiceLineId,this.invoiceId,this.trackId,this.unitPrice,this.quantity}); PatchInvoiceItems.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 }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "PatchInvoiceItems"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'InvoiceItems': TypeInfo(TypeOf.Class, create:() => InvoiceItems()), 'PatchInvoiceItems': TypeInfo(TypeOf.Class, create:() => PatchInvoiceItems()), });