/* Options: Date: 2026-06-14 21:41:13 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qp-microservices-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPromoterTypes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseRequest implements IRequest, IConvertible { String? sid; String? app; String? _os; String? _appVersion; String? _searchMethod; BaseRequest({this.sid,this.app,this._os,this._appVersion,this._searchMethod}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sid = json['sid']; app = json['app']; _os = json['_os']; _appVersion = json['_appVersion']; _searchMethod = json['_searchMethod']; return this; } Map toJson() => { 'sid': sid, 'app': app, '_os': _os, '_appVersion': _appVersion, '_searchMethod': _searchMethod }; getTypeName() => "BaseRequest<$TResponse>"; TypeContext? context = _ctx; } abstract class IRequest { String? sid; String? app; } class PromoterType implements IConvertible { String? promoterTypeId; String? description; PromoterType({this.promoterTypeId,this.description}); PromoterType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { promoterTypeId = json['promoterTypeId']; description = json['description']; return this; } Map toJson() => { 'promoterTypeId': promoterTypeId, 'description': description }; getTypeName() => "PromoterType"; TypeContext? context = _ctx; } class GetPromoterTypesResponse implements IConvertible { List? promoterTypes; GetPromoterTypesResponse({this.promoterTypes}); GetPromoterTypesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { promoterTypes = JsonConverters.fromJson(json['promoterTypes'],'List',context!); return this; } Map toJson() => { 'promoterTypes': JsonConverters.toJson(promoterTypes,'List',context!) }; getTypeName() => "GetPromoterTypesResponse"; TypeContext? context = _ctx; } // @Route("/warranty/v1/promotertypes/{promoterTypeId*}", "GET") class GetPromoterTypes extends BaseRequest implements IReturn, IConvertible, IGet { String? promoterTypeId; GetPromoterTypes({this.promoterTypeId}); GetPromoterTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); promoterTypeId = json['promoterTypeId']; return this; } Map toJson() => super.toJson()..addAll({ 'promoterTypeId': promoterTypeId }); createResponse() => GetPromoterTypesResponse(); getResponseTypeName() => "GetPromoterTypesResponse"; getTypeName() => "GetPromoterTypes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qp_microservices_booster.richemont.com', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'IRequest': TypeInfo(TypeOf.Interface), 'PromoterType': TypeInfo(TypeOf.Class, create:() => PromoterType()), 'GetPromoterTypesResponse': TypeInfo(TypeOf.Class, create:() => GetPromoterTypesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetPromoterTypes': TypeInfo(TypeOf.Class, create:() => GetPromoterTypes()), });