/* Options: Date: 2025-05-13 22:14:41 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chinook.netcore.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryInvoices.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Invoices implements IConvertible { int? invoiceId; int? customerId; DateTime? invoiceDate; double? total; String? billingAddress; String? billingCity; String? billingState; String? billingCountry; String? billingPostalCode; Invoices({this.invoiceId,this.customerId,this.invoiceDate,this.total,this.billingAddress,this.billingCity,this.billingState,this.billingCountry,this.billingPostalCode}); Invoices.fromJson(Map json) { fromMap(json); } fromMap(Map json) { invoiceId = json['invoiceId']; customerId = json['customerId']; invoiceDate = JsonConverters.fromJson(json['invoiceDate'],'DateTime',context!); total = JsonConverters.toDouble(json['total']); billingAddress = json['billingAddress']; billingCity = json['billingCity']; billingState = json['billingState']; billingCountry = json['billingCountry']; billingPostalCode = json['billingPostalCode']; return this; } Map toJson() => { 'invoiceId': invoiceId, 'customerId': customerId, 'invoiceDate': JsonConverters.toJson(invoiceDate,'DateTime',context!), 'total': total, 'billingAddress': billingAddress, 'billingCity': billingCity, 'billingState': billingState, 'billingCountry': billingCountry, 'billingPostalCode': billingPostalCode }; getTypeName() => "Invoices"; TypeContext? context = _ctx; } // @Route("/invoices", "GET") // @Route("/invoices/{InvoiceId}", "GET") class QueryInvoices extends QueryDb implements IReturn>, IGet, IConvertible { int? invoiceId; QueryInvoices({this.invoiceId}); QueryInvoices.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); invoiceId = json['invoiceId']; return this; } Map toJson() => super.toJson()..addAll({ 'invoiceId': invoiceId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryInvoices"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chinook.netcore.io', types: { 'Invoices': TypeInfo(TypeOf.Class, create:() => Invoices()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryInvoices': TypeInfo(TypeOf.Class, create:() => QueryInvoices()), 'List': TypeInfo(TypeOf.Class, create:() => []), });