POST | /RestApi/ab-testing/end |
---|
import 'package:servicestack/servicestack.dart';
class PostWinningVariation implements IConvertible
{
String? ABTestId;
String? FinalVariationId;
bool? ShouldPublish;
PostWinningVariation({this.ABTestId,this.FinalVariationId,this.ShouldPublish});
PostWinningVariation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ABTestId = json['ABTestId'];
FinalVariationId = json['FinalVariationId'];
ShouldPublish = json['ShouldPublish'];
return this;
}
Map<String, dynamic> toJson() => {
'ABTestId': ABTestId,
'FinalVariationId': FinalVariationId,
'ShouldPublish': ShouldPublish
};
getTypeName() => "PostWinningVariation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'PostWinningVariation': TypeInfo(TypeOf.Class, create:() => PostWinningVariation()),
});
Dart PostWinningVariation DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/ab-testing/end HTTP/1.1
Host: www.asg.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ShouldPublish":false}