/* Options: Date: 2026-09-01 22:07:20 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: DeleteChinookCustomer.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Customers implements IConvertible { int customerId = 0; // @required() String firstName = ""; // @required() String lastName = ""; String company = ""; String address = ""; String city = ""; String state = ""; String country = ""; String postalCode = ""; String phone = ""; String fax = ""; // @required() String email = ""; int? supportRepId; Customers({this.customerId=0,this.firstName="",this.lastName="",this.company="",this.address="",this.city="",this.state="",this.country="",this.postalCode="",this.phone="",this.fax="",this.email="",this.supportRepId}); Customers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId'] ?? 0; firstName = json['firstName'] ?? ""; lastName = json['lastName'] ?? ""; company = json['company'] ?? ""; address = json['address'] ?? ""; city = json['city'] ?? ""; state = json['state'] ?? ""; country = json['country'] ?? ""; postalCode = json['postalCode'] ?? ""; phone = json['phone'] ?? ""; fax = json['fax'] ?? ""; email = json['email'] ?? ""; supportRepId = json['supportRepId']; return this; } Map toJson() => { 'customerId': customerId, 'firstName': firstName, 'lastName': lastName, 'company': company, 'address': address, 'city': city, 'state': state, 'country': country, 'postalCode': postalCode, 'phone': phone, 'fax': fax, 'email': email, 'supportRepId': supportRepId }; getTypeName() => "Customers"; TypeContext? context = _ctx; } // @Route("/customers/{CustomerId}", "DELETE") class DeleteChinookCustomer implements IReturn, IDelete, IDeleteDb, IConvertible { int customerId = 0; DeleteChinookCustomer({this.customerId=0}); DeleteChinookCustomer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId'] ?? 0; return this; } Map toJson() => { 'customerId': customerId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "DeleteChinookCustomer"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Customers': TypeInfo(TypeOf.Class, create:() => Customers()), 'DeleteChinookCustomer': TypeInfo(TypeOf.Class, create:() => DeleteChinookCustomer()), });