/* Options: Date: 2026-06-14 22:06:02 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: ListWarrantyCardsRequest.* //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 BaseResponse implements IRespose, IConvertible { String? _xmlns; String? _type; String? _source; String? _tstamp; String? _user; String? _env; String? _uri; String? _query; BaseResponse({this._xmlns,this._type,this._source,this._tstamp,this._user,this._env,this._uri,this._query}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { _xmlns = json['_xmlns']; _type = json['_type']; _source = json['_source']; _tstamp = json['_tstamp']; _user = json['_user']; _env = json['_env']; _uri = json['_uri']; _query = json['_query']; return this; } Map toJson() => { '_xmlns': _xmlns, '_type': _type, '_source': _source, '_tstamp': _tstamp, '_user': _user, '_env': _env, '_uri': _uri, '_query': _query }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } abstract class IRespose { String? _xmlns; String? _type; String? _source; String? _tstamp; String? _user; String? _env; String? _uri; String? _query; } class Article implements IConvertible { String? ref; String? serial; String? name; String? shortDesc; String? brand; int? warrantyStatusId; String? warrantyStatusDesc; String? warrantyStatusCode; bool? isConsignment; Article({this.ref,this.serial,this.name,this.shortDesc,this.brand,this.warrantyStatusId,this.warrantyStatusDesc,this.warrantyStatusCode,this.isConsignment}); Article.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ref = json['ref']; serial = json['serial']; name = json['name']; shortDesc = json['shortDesc']; brand = json['brand']; warrantyStatusId = json['warrantyStatusId']; warrantyStatusDesc = json['warrantyStatusDesc']; warrantyStatusCode = json['warrantyStatusCode']; isConsignment = json['isConsignment']; return this; } Map toJson() => { 'ref': ref, 'serial': serial, 'name': name, 'shortDesc': shortDesc, 'brand': brand, 'warrantyStatusId': warrantyStatusId, 'warrantyStatusDesc': warrantyStatusDesc, 'warrantyStatusCode': warrantyStatusCode, 'isConsignment': isConsignment }; getTypeName() => "Article"; TypeContext? context = _ctx; } class Site implements IConvertible { String? object; String? id; String? name; Address? address; bool? crmPrivacyPolicyMandatory; bool? crmAllowStoreDataAbroadVisible; bool? isTimeVallee; bool? crmPrivacyPolicyTimeValleeMandatory; bool? crmAllowStoreDataAbroadTimeValleeVisible; bool? allowToCreateEndCustomerOutsideChina; bool? displayFirstLastNameNotLatin; String? languageTransliteration; bool? doNotDisplayPOSDataInDisclaimers; bool? crmFirstNameMandatory; bool? crmCityMandatory; bool? manageOwnStock; Site({this.object,this.id,this.name,this.address,this.crmPrivacyPolicyMandatory,this.crmAllowStoreDataAbroadVisible,this.isTimeVallee,this.crmPrivacyPolicyTimeValleeMandatory,this.crmAllowStoreDataAbroadTimeValleeVisible,this.allowToCreateEndCustomerOutsideChina,this.displayFirstLastNameNotLatin,this.languageTransliteration,this.doNotDisplayPOSDataInDisclaimers,this.crmFirstNameMandatory,this.crmCityMandatory,this.manageOwnStock}); Site.fromJson(Map json) { fromMap(json); } fromMap(Map json) { object = json['object']; id = json['id']; name = json['name']; address = JsonConverters.fromJson(json['address'],'Address',context!); crmPrivacyPolicyMandatory = json['crmPrivacyPolicyMandatory']; crmAllowStoreDataAbroadVisible = json['crmAllowStoreDataAbroadVisible']; isTimeVallee = json['isTimeVallee']; crmPrivacyPolicyTimeValleeMandatory = json['crmPrivacyPolicyTimeValleeMandatory']; crmAllowStoreDataAbroadTimeValleeVisible = json['crmAllowStoreDataAbroadTimeValleeVisible']; allowToCreateEndCustomerOutsideChina = json['allowToCreateEndCustomerOutsideChina']; displayFirstLastNameNotLatin = json['displayFirstLastNameNotLatin']; languageTransliteration = json['languageTransliteration']; doNotDisplayPOSDataInDisclaimers = json['doNotDisplayPOSDataInDisclaimers']; crmFirstNameMandatory = json['crmFirstNameMandatory']; crmCityMandatory = json['crmCityMandatory']; manageOwnStock = json['manageOwnStock']; return this; } Map toJson() => { 'object': object, 'id': id, 'name': name, 'address': JsonConverters.toJson(address,'Address',context!), 'crmPrivacyPolicyMandatory': crmPrivacyPolicyMandatory, 'crmAllowStoreDataAbroadVisible': crmAllowStoreDataAbroadVisible, 'isTimeVallee': isTimeVallee, 'crmPrivacyPolicyTimeValleeMandatory': crmPrivacyPolicyTimeValleeMandatory, 'crmAllowStoreDataAbroadTimeValleeVisible': crmAllowStoreDataAbroadTimeValleeVisible, 'allowToCreateEndCustomerOutsideChina': allowToCreateEndCustomerOutsideChina, 'displayFirstLastNameNotLatin': displayFirstLastNameNotLatin, 'languageTransliteration': languageTransliteration, 'doNotDisplayPOSDataInDisclaimers': doNotDisplayPOSDataInDisclaimers, 'crmFirstNameMandatory': crmFirstNameMandatory, 'crmCityMandatory': crmCityMandatory, 'manageOwnStock': manageOwnStock }; getTypeName() => "Site"; TypeContext? context = _ctx; } class Warranty implements IConvertible { List
? article; String? warrantyId; String? createdBy; String? createdAt; String? issuedBy; String? selloutId; String? activationDate; String? pin; String? promoterTypeId; String? promoterTypeDs; Site? site; bool? crmEnabled; bool? canBeExtended; bool? canBeRetriggered; Warranty({this.article,this.warrantyId,this.createdBy,this.createdAt,this.issuedBy,this.selloutId,this.activationDate,this.pin,this.promoterTypeId,this.promoterTypeDs,this.site,this.crmEnabled,this.canBeExtended,this.canBeRetriggered}); Warranty.fromJson(Map json) { fromMap(json); } fromMap(Map json) { article = JsonConverters.fromJson(json['article'],'List
',context!); warrantyId = json['warrantyId']; createdBy = json['createdBy']; createdAt = json['createdAt']; issuedBy = json['issuedBy']; selloutId = json['selloutId']; activationDate = json['activationDate']; pin = json['pin']; promoterTypeId = json['promoterTypeId']; promoterTypeDs = json['promoterTypeDs']; site = JsonConverters.fromJson(json['site'],'Site',context!); crmEnabled = json['crmEnabled']; canBeExtended = json['canBeExtended']; canBeRetriggered = json['canBeRetriggered']; return this; } Map toJson() => { 'article': JsonConverters.toJson(article,'List
',context!), 'warrantyId': warrantyId, 'createdBy': createdBy, 'createdAt': createdAt, 'issuedBy': issuedBy, 'selloutId': selloutId, 'activationDate': activationDate, 'pin': pin, 'promoterTypeId': promoterTypeId, 'promoterTypeDs': promoterTypeDs, 'site': JsonConverters.toJson(site,'Site',context!), 'crmEnabled': crmEnabled, 'canBeExtended': canBeExtended, 'canBeRetriggered': canBeRetriggered }; getTypeName() => "Warranty"; TypeContext? context = _ctx; } class Site implements ILookupInt, IConvertible { String? object; int? id; String? name; Address? address; List? brands; List? users; int? isNfcActive; int? isIOsEmbReaderEnable; bool? crmPrivacyPolicyMandatory; bool? crmAllowStoreDataAbroadVisible; bool? displayFirstLastNameNotLatin; String? languageTransliteration; bool? crmPrivacyPolicyTimeValleeMandatory; bool? crmAllowStoreDataAbroadTimeValleeVisible; bool? allowToCreateEndCustomerOutsideChina; bool? isTimeVallee; bool? doNotDisplayPOSDataInDisclaimers; bool? crmFirstNameMandatory; bool? manageOwnStock; bool? crmCityMandatory; Site({this.object,this.id,this.name,this.address,this.brands,this.users,this.isNfcActive,this.isIOsEmbReaderEnable,this.crmPrivacyPolicyMandatory,this.crmAllowStoreDataAbroadVisible,this.displayFirstLastNameNotLatin,this.languageTransliteration,this.crmPrivacyPolicyTimeValleeMandatory,this.crmAllowStoreDataAbroadTimeValleeVisible,this.allowToCreateEndCustomerOutsideChina,this.isTimeVallee,this.doNotDisplayPOSDataInDisclaimers,this.crmFirstNameMandatory,this.manageOwnStock,this.crmCityMandatory}); Site.fromJson(Map json) { fromMap(json); } fromMap(Map json) { object = json['object']; id = json['id']; name = json['name']; address = JsonConverters.fromJson(json['address'],'Address',context!); brands = JsonConverters.fromJson(json['brands'],'List',context!); users = JsonConverters.fromJson(json['users'],'List',context!); isNfcActive = json['isNfcActive']; isIOsEmbReaderEnable = json['isIOsEmbReaderEnable']; crmPrivacyPolicyMandatory = json['crmPrivacyPolicyMandatory']; crmAllowStoreDataAbroadVisible = json['crmAllowStoreDataAbroadVisible']; displayFirstLastNameNotLatin = json['displayFirstLastNameNotLatin']; languageTransliteration = json['languageTransliteration']; crmPrivacyPolicyTimeValleeMandatory = json['crmPrivacyPolicyTimeValleeMandatory']; crmAllowStoreDataAbroadTimeValleeVisible = json['crmAllowStoreDataAbroadTimeValleeVisible']; allowToCreateEndCustomerOutsideChina = json['allowToCreateEndCustomerOutsideChina']; isTimeVallee = json['isTimeVallee']; doNotDisplayPOSDataInDisclaimers = json['doNotDisplayPOSDataInDisclaimers']; crmFirstNameMandatory = json['crmFirstNameMandatory']; manageOwnStock = json['manageOwnStock']; crmCityMandatory = json['crmCityMandatory']; return this; } Map toJson() => { 'object': object, 'id': id, 'name': name, 'address': JsonConverters.toJson(address,'Address',context!), 'brands': JsonConverters.toJson(brands,'List',context!), 'users': JsonConverters.toJson(users,'List',context!), 'isNfcActive': isNfcActive, 'isIOsEmbReaderEnable': isIOsEmbReaderEnable, 'crmPrivacyPolicyMandatory': crmPrivacyPolicyMandatory, 'crmAllowStoreDataAbroadVisible': crmAllowStoreDataAbroadVisible, 'displayFirstLastNameNotLatin': displayFirstLastNameNotLatin, 'languageTransliteration': languageTransliteration, 'crmPrivacyPolicyTimeValleeMandatory': crmPrivacyPolicyTimeValleeMandatory, 'crmAllowStoreDataAbroadTimeValleeVisible': crmAllowStoreDataAbroadTimeValleeVisible, 'allowToCreateEndCustomerOutsideChina': allowToCreateEndCustomerOutsideChina, 'isTimeVallee': isTimeVallee, 'doNotDisplayPOSDataInDisclaimers': doNotDisplayPOSDataInDisclaimers, 'crmFirstNameMandatory': crmFirstNameMandatory, 'manageOwnStock': manageOwnStock, 'crmCityMandatory': crmCityMandatory }; getTypeName() => "Site"; TypeContext? context = _ctx; } class Article implements IConvertible { String? ref; String? serial; String? name; LookupInt? site; String? brand; bool? isConsignment; Article({this.ref,this.serial,this.name,this.site,this.brand,this.isConsignment}); Article.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ref = json['ref']; serial = json['serial']; name = json['name']; site = JsonConverters.fromJson(json['site'],'LookupInt',context!); brand = json['brand']; isConsignment = json['isConsignment']; return this; } Map toJson() => { 'ref': ref, 'serial': serial, 'name': name, 'site': JsonConverters.toJson(site,'LookupInt',context!), 'brand': brand, 'isConsignment': isConsignment }; getTypeName() => "Article"; TypeContext? context = _ctx; } class ListWarrantyCardsResponse extends BaseResponse implements IConvertible { List? warranty; ListWarrantyCardsResponse({this.warranty}); ListWarrantyCardsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); warranty = JsonConverters.fromJson(json['warranty'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'warranty': JsonConverters.toJson(warranty,'List',context!) }); getTypeName() => "ListWarrantyCardsResponse"; TypeContext? context = _ctx; } // @Route("/warranty/v1/cards", "GET") class ListWarrantyCardsRequest extends BaseRequest implements IReturn, IConvertible, IGet { String? user; String? site; String? system; String? application; String? article; String? ref; String? serial; int? page; int? size; ListWarrantyCardsRequest({this.user,this.site,this.system,this.application,this.article,this.ref,this.serial,this.page,this.size}); ListWarrantyCardsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); user = json['user']; site = json['site']; system = json['system']; application = json['application']; article = json['article']; ref = json['ref']; serial = json['serial']; page = json['page']; size = json['size']; return this; } Map toJson() => super.toJson()..addAll({ 'user': user, 'site': site, 'system': system, 'application': application, 'article': article, 'ref': ref, 'serial': serial, 'page': page, 'size': size }); createResponse() => ListWarrantyCardsResponse(); getResponseTypeName() => "ListWarrantyCardsResponse"; getTypeName() => "ListWarrantyCardsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'qp_microservices_booster.richemont.com', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'IRequest': TypeInfo(TypeOf.Interface), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'IRespose': TypeInfo(TypeOf.Interface), 'Article': TypeInfo(TypeOf.Class, create:() => Article()), 'Site': TypeInfo(TypeOf.Class, create:() => Site()), 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'Warranty': TypeInfo(TypeOf.Class, create:() => Warranty()), 'List
': TypeInfo(TypeOf.Class, create:() =>
[]), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Brand': TypeInfo(TypeOf.Class, create:() => Brand()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'User': TypeInfo(TypeOf.Class, create:() => User()), 'LookupInt': TypeInfo(TypeOf.Class, create:() => LookupInt()), 'ListWarrantyCardsResponse': TypeInfo(TypeOf.Class, create:() => ListWarrantyCardsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ListWarrantyCardsRequest': TypeInfo(TypeOf.Class, create:() => ListWarrantyCardsRequest()), });