/* Options: Date: 2024-12-22 21:52:44 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: DeleteChinookCustomer.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Customers implements IConvertible { int? customerId; // @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,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']; 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; DeleteChinookCustomer({this.customerId}); DeleteChinookCustomer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId']; 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()), });