/* Options: Date: 2025-08-05 02:49:16 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.asg.com.au/RestApi //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SuggestionsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SuggestionsResponse implements IConvertible { List? Suggestions; SuggestionsResponse({this.Suggestions}); SuggestionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Suggestions = JsonConverters.fromJson(json['Suggestions'],'List',context!); return this; } Map toJson() => { 'Suggestions': JsonConverters.toJson(Suggestions,'List',context!) }; getTypeName() => "SuggestionsResponse"; TypeContext? context = _ctx; } // @Route("/search/suggestions") // @Route("/search/suggestions", "GET") class SuggestionsRequest implements IReturn, IConvertible, IGet { String? IndexName; String? SuggestionFields; String? Text; String? Language; String? SiteId; String? ScoringInfo; bool? ResultsForAllSites; SuggestionsRequest({this.IndexName,this.SuggestionFields,this.Text,this.Language,this.SiteId,this.ScoringInfo,this.ResultsForAllSites}); SuggestionsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IndexName = json['IndexName']; SuggestionFields = json['SuggestionFields']; Text = json['Text']; Language = json['Language']; SiteId = json['SiteId']; ScoringInfo = json['ScoringInfo']; ResultsForAllSites = json['ResultsForAllSites']; return this; } Map toJson() => { 'IndexName': IndexName, 'SuggestionFields': SuggestionFields, 'Text': Text, 'Language': Language, 'SiteId': SiteId, 'ScoringInfo': ScoringInfo, 'ResultsForAllSites': ResultsForAllSites }; createResponse() => SuggestionsResponse(); getResponseTypeName() => "SuggestionsResponse"; getTypeName() => "SuggestionsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'SuggestionsResponse': TypeInfo(TypeOf.Class, create:() => SuggestionsResponse()), 'SuggestionsRequest': TypeInfo(TypeOf.Class, create:() => SuggestionsRequest()), });