/* Options: Date: 2024-05-09 05:31:18 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://northwind.netcore.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryCustomers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class Customer implements IConvertible { // @DataMember String? id; // @DataMember String? companyName; // @DataMember String? contactName; // @DataMember String? contactTitle; // @DataMember String? address; // @DataMember String? city; // @DataMember String? region; // @DataMember String? postalCode; // @DataMember String? country; // @DataMember String? phone; // @DataMember String? fax; Customer({this.id,this.companyName,this.contactName,this.contactTitle,this.address,this.city,this.region,this.postalCode,this.country,this.phone,this.fax}); Customer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; companyName = json['companyName']; contactName = json['contactName']; contactTitle = json['contactTitle']; address = json['address']; city = json['city']; region = json['region']; postalCode = json['postalCode']; country = json['country']; phone = json['phone']; fax = json['fax']; return this; } Map toJson() => { 'id': id, 'companyName': companyName, 'contactName': contactName, 'contactTitle': contactTitle, 'address': address, 'city': city, 'region': region, 'postalCode': postalCode, 'country': country, 'phone': phone, 'fax': fax }; getTypeName() => "Customer"; TypeContext? context = _ctx; } // @Route("/query/customers") class QueryCustomers extends QueryDb implements IReturn>, IConvertible, IGet { List? ids; String? countryStartsWith; QueryCustomers({this.ids,this.countryStartsWith}); QueryCustomers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ids = JsonConverters.fromJson(json['ids'],'List',context!); countryStartsWith = json['countryStartsWith']; return this; } Map toJson() => super.toJson()..addAll({ 'ids': JsonConverters.toJson(ids,'List',context!), 'countryStartsWith': countryStartsWith }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryCustomers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'northwind.netcore.io', types: { 'Customer': TypeInfo(TypeOf.Class, create:() => Customer()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryCustomers': TypeInfo(TypeOf.Class, create:() => QueryCustomers()), 'List': TypeInfo(TypeOf.Class, create:() => []), });