| GET | /qry/e2e/progress |
|---|
import 'package:servicestack/servicestack.dart';
class E2EProgress implements IConvertible
{
String? id;
bool? isActive;
int? slipsTotal;
int? slipsSubmitted;
DateTime? lastUTCChange;
E2EProgress({this.id,this.isActive,this.slipsTotal,this.slipsSubmitted,this.lastUTCChange});
E2EProgress.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
isActive = json['isActive'];
slipsTotal = json['slipsTotal'];
slipsSubmitted = json['slipsSubmitted'];
lastUTCChange = JsonConverters.fromJson(json['lastUTCChange'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'isActive': isActive,
'slipsTotal': slipsTotal,
'slipsSubmitted': slipsSubmitted,
'lastUTCChange': JsonConverters.toJson(lastUTCChange,'DateTime',context!)
};
getTypeName() => "E2EProgress";
TypeContext? context = _ctx;
}
class GetE2EProgress implements IConvertible
{
GetE2EProgress();
GetE2EProgress.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetE2EProgress";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: <String, TypeInfo> {
'E2EProgress': TypeInfo(TypeOf.Class, create:() => E2EProgress()),
'GetE2EProgress': TypeInfo(TypeOf.Class, create:() => GetE2EProgress()),
});
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 /qry/e2e/progress HTTP/1.1 Host: api.sbbet.ath.cx Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: String,
isActive: False,
slipsTotal: 0,
slipsSubmitted: 0,
lastUTCChange: 0001-01-01
}