/* Options: Date: 2026-09-09 11:05:48 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://services.acct.2service.nl //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetSearchParts.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class AuthenticatedRequest { /** * Session token received from successful authentication. */ // @ApiMember(Description="Session token received from successful authentication.", IsRequired=true, ParameterType="query") String SessionToken = ""; AuthenticatedRequest({this.SessionToken=""}); AuthenticatedRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SessionToken = json['SessionToken'] ?? ""; return this; } Map toJson() => { 'SessionToken': SessionToken }; getTypeName() => "AuthenticatedRequest"; TypeContext? context = _ctx; } class OperationResult implements IConvertible { /** * Specifies if the operation was successful. */ // @ApiMember(Description="Specifies if the operation was successful.", ParameterType="model") bool? IsSuccessful; /** * States error message in case of unsuccessful operation. */ // @ApiMember(Description="States error message in case of unsuccessful operation.", ParameterType="model") String? ErrorMessage; OperationResult({this.IsSuccessful,this.ErrorMessage}); OperationResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IsSuccessful = json['IsSuccessful']; ErrorMessage = json['ErrorMessage']; return this; } Map toJson() => { 'IsSuccessful': IsSuccessful, 'ErrorMessage': ErrorMessage }; getTypeName() => "OperationResult"; TypeContext? context = _ctx; } class OperationResult1 extends OperationResult implements IConvertible { /** * Result value */ // @ApiMember(Description="Result value", ParameterType="model") T? Result; OperationResult1({this.Result}); OperationResult1.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Result = JsonConverters.fromJson(json['Result'],'T',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Result': JsonConverters.toJson(Result,'T',context!) }); getTypeName() => "OperationResult<$T>"; TypeContext? context = _ctx; } // @Route("/dealers/parts/search", "GET") class GetSearchParts extends AuthenticatedRequest implements IReturn>, IConvertible, IGet { /** * Keyword(s) */ // @ApiMember(Description="Keyword(s)", IsRequired=true) String SearchText = ""; /** * Article type (1=part, 2=accessory, 3=tool, 4=device) */ // @ApiMember(Description="Article type (1=part, 2=accessory, 3=tool, 4=device)", IsRequired=true) int ArticleType = 0; /** * Number of parts to return (max 100). */ // @ApiMember(Description="Number of parts to return (max 100).", IsRequired=true) int PageSize = 0; /** * Page number. */ // @ApiMember(Description="Page number.", IsRequired=true) int Page = 0; GetSearchParts({this.SearchText="",this.ArticleType=0,this.PageSize=0,this.Page=0}); GetSearchParts.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SearchText = json['SearchText'] ?? ""; ArticleType = json['ArticleType'] ?? 0; PageSize = json['PageSize'] ?? 0; Page = json['Page'] ?? 0; return this; } Map toJson() => super.toJson()..addAll({ 'SearchText': SearchText, 'ArticleType': ArticleType, 'PageSize': PageSize, 'Page': Page }); createResponse() => OperationResult1(); getResponseTypeName() => "OperationResult1"; getTypeName() => "GetSearchParts"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'services.acct.2service.nl', types: { 'AuthenticatedRequest': TypeInfo(TypeOf.AbstractClass), 'OperationResult': TypeInfo(TypeOf.Class, create:() => OperationResult()), 'OperationResult1': TypeInfo(TypeOf.GenericDef,create:() => OperationResult1()), 'OperationResult1': TypeInfo(TypeOf.Class, create:() => OperationResult1()), 'PartResults': TypeInfo(TypeOf.Class, create:() => PartResults()), 'GetSearchParts': TypeInfo(TypeOf.Class, create:() => GetSearchParts()), });