| POST | /warranty/v1/GetBrandPrivacyPolicy |
|---|
import 'package:servicestack/servicestack.dart';
class BaseRequest<TResponse> 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<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sid = json['sid'];
app = json['app'];
_os = json['_os'];
_appVersion = json['_appVersion'];
_searchMethod = json['_searchMethod'];
return this;
}
Map<String, dynamic> toJson() => {
'sid': sid,
'app': app,
'_os': _os,
'_appVersion': _appVersion,
'_searchMethod': _searchMethod
};
getTypeName() => "BaseRequest<$TResponse>";
TypeContext? context = _ctx;
}
class GetBrandPrivacyPolicy extends BaseRequest<String> implements IConvertible
{
String? countryId;
String? languageId;
String? brandTrigram;
int? posId;
GetBrandPrivacyPolicy({this.countryId,this.languageId,this.brandTrigram,this.posId});
GetBrandPrivacyPolicy.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
countryId = json['countryId'];
languageId = json['languageId'];
brandTrigram = json['brandTrigram'];
posId = json['posId'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'countryId': countryId,
'languageId': languageId,
'brandTrigram': brandTrigram,
'posId': posId
});
getTypeName() => "GetBrandPrivacyPolicy";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'qp_microservices_booster.richemont.com', types: <String, TypeInfo> {
'BaseRequest<TResponse>': TypeInfo(TypeOf.Class, create:() => BaseRequest<TResponse>()),
'GetBrandPrivacyPolicy': TypeInfo(TypeOf.Class, create:() => GetBrandPrivacyPolicy()),
});
Dart GetBrandPrivacyPolicy DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /warranty/v1/GetBrandPrivacyPolicy HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"countryId":"String","languageId":"String","brandTrigram":"String","posId":0,"sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length (string)