/* Options: Date: 2025-05-13 20:57:55 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: QueryCustomers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Customers implements IConvertible { int? customerId; // @computed() String? displayName; // @required() String? firstName; // @required() String? lastName; int? supportRepId; String? company; String? address; String? city; String? state; String? country; String? postalCode; String? phone; String? fax; // @required() String? email; Customers({this.customerId,this.displayName,this.firstName,this.lastName,this.supportRepId,this.company,this.address,this.city,this.state,this.country,this.postalCode,this.phone,this.fax,this.email}); Customers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId']; displayName = json['displayName']; firstName = json['firstName']; lastName = json['lastName']; supportRepId = json['supportRepId']; 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']; return this; } Map toJson() => { 'customerId': customerId, 'displayName': displayName, 'firstName': firstName, 'lastName': lastName, 'supportRepId': supportRepId, 'company': company, 'address': address, 'city': city, 'state': state, 'country': country, 'postalCode': postalCode, 'phone': phone, 'fax': fax, 'email': email }; getTypeName() => "Customers"; TypeContext? context = _ctx; } // @Route("/customers", "GET") // @Route("/customers/{CustomerId}", "GET") class QueryCustomers extends QueryDb implements IReturn>, IGet, IConvertible { int? customerId; QueryCustomers({this.customerId}); QueryCustomers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); customerId = json['customerId']; return this; } Map toJson() => super.toJson()..addAll({ 'customerId': customerId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryCustomers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chinook.netcore.io', types: { 'Customers': TypeInfo(TypeOf.Class, create:() => Customers()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryCustomers': TypeInfo(TypeOf.Class, create:() => QueryCustomers()), 'List': TypeInfo(TypeOf.Class, create:() => []), });