<back to all web services

PostWinningVariation

The following routes are available for this service:
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 .other suffix or ?format=other

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ShouldPublish":false}