/* Options: Date: 2026-05-19 10:46:14 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPromoterType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PromoterTypeItem implements IConvertible { /** * Code of Promoter Type */ // @ApiMember(Description="Code of Promoter Type", IsRequired=true) String? code; /** * Description of Promoter Type */ // @ApiMember(Description="Description of Promoter Type", IsRequired=true) String? description; PromoterTypeItem({this.code,this.description}); PromoterTypeItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; description = json['description']; return this; } Map toJson() => { 'code': code, 'description': description }; getTypeName() => "PromoterTypeItem"; TypeContext? context = _ctx; } class GetPromoterTypeResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; PromoterTypeItem operator [](int index) => l[index]; void operator []=(int index, PromoterTypeItem value) { l[index] = value; } GetPromoterTypeResponse(); GetPromoterTypeResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetPromoterTypeResponse"; TypeContext? context = _ctx; } // @Route("/warranty/promotertype", "GET") class GetPromoterType implements IReturn, IConvertible, IGet { GetPromoterType(); GetPromoterType.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetPromoterTypeResponse(); getResponseTypeName() => "GetPromoterTypeResponse"; getTypeName() => "GetPromoterType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'PromoterTypeItem': TypeInfo(TypeOf.Class, create:() => PromoterTypeItem()), 'GetPromoterTypeResponse': TypeInfo(TypeOf.Class, create:() => GetPromoterTypeResponse()), 'GetPromoterType': TypeInfo(TypeOf.Class, create:() => GetPromoterType()), });