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