/* Options: Date: 2026-10-01 10:22:26 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SupportCustomerSearchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SupportCustomerHit implements IConvertible { String? phone; String? email; String? name; int? ticketCount; int? ownerCardCount; int? webshopOrderCount; int? giftCardCount; int? sharedLinkCount; DateTime? lastActivityUtc; List? sellers; String? matchedBy; SupportCustomerHit({this.phone,this.email,this.name,this.ticketCount,this.ownerCardCount,this.webshopOrderCount,this.giftCardCount,this.sharedLinkCount,this.lastActivityUtc,this.sellers,this.matchedBy}); SupportCustomerHit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { phone = json['phone']; email = json['email']; name = json['name']; ticketCount = json['ticketCount']; ownerCardCount = json['ownerCardCount']; webshopOrderCount = json['webshopOrderCount']; giftCardCount = json['giftCardCount']; sharedLinkCount = json['sharedLinkCount']; lastActivityUtc = JsonConverters.fromJson(json['lastActivityUtc'],'DateTime',context!); sellers = JsonConverters.fromJson(json['sellers'],'List',context!); matchedBy = json['matchedBy']; return this; } Map toJson() => { 'phone': phone, 'email': email, 'name': name, 'ticketCount': ticketCount, 'ownerCardCount': ownerCardCount, 'webshopOrderCount': webshopOrderCount, 'giftCardCount': giftCardCount, 'sharedLinkCount': sharedLinkCount, 'lastActivityUtc': JsonConverters.toJson(lastActivityUtc,'DateTime',context!), 'sellers': JsonConverters.toJson(sellers,'List',context!), 'matchedBy': matchedBy }; getTypeName() => "SupportCustomerHit"; TypeContext? context = _ctx; } class SupportCustomerSearchResult implements IConvertible { List? hits; String? termKind; String? normalizedTerm; List? warnings; int? statusCode; String? message; SupportCustomerSearchResult({this.hits,this.termKind,this.normalizedTerm,this.warnings,this.statusCode,this.message}); SupportCustomerSearchResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { hits = JsonConverters.fromJson(json['hits'],'List',context!); termKind = json['termKind']; normalizedTerm = json['normalizedTerm']; warnings = JsonConverters.fromJson(json['warnings'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'hits': JsonConverters.toJson(hits,'List',context!), 'termKind': termKind, 'normalizedTerm': normalizedTerm, 'warnings': JsonConverters.toJson(warnings,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "SupportCustomerSearchResult"; TypeContext? context = _ctx; } // @Route("/Support/CustomerSearch", "POST") class SupportCustomerSearchRequest implements IReturn, IConvertible { String? term; int? limit; SupportCustomerSearchRequest({this.term,this.limit}); SupportCustomerSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { term = json['term']; limit = json['limit']; return this; } Map toJson() => { 'term': term, 'limit': limit }; createResponse() => SupportCustomerSearchResult(); getResponseTypeName() => "SupportCustomerSearchResult"; getTypeName() => "SupportCustomerSearchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'SupportCustomerHit': TypeInfo(TypeOf.Class, create:() => SupportCustomerHit()), 'SupportCustomerSearchResult': TypeInfo(TypeOf.Class, create:() => SupportCustomerSearchResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SupportCustomerSearchRequest': TypeInfo(TypeOf.Class, create:() => SupportCustomerSearchRequest()), });