/* Options: Date: 2025-12-06 05:30:46 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.ath.cx //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SettleBet.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BetOutcome { static const BetOutcome Unknown = const BetOutcome._(0); static const BetOutcome Lost = const BetOutcome._(1); static const BetOutcome Won = const BetOutcome._(2); static const BetOutcome Void = const BetOutcome._(3); final int _value; const BetOutcome._(this._value); int get value => _value; static List get values => const [Unknown,Lost,Won,Void]; } // @Route("/cmd/slips/bets/settle", "POST") class SettleBet implements IReturn, IConvertible, IPost { String? id; String? betId; BetOutcome? outcome; double? winnings; Map? results; SettleBet({this.id,this.betId,this.outcome,this.winnings,this.results}); SettleBet.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; betId = json['betId']; outcome = JsonConverters.fromJson(json['outcome'],'BetOutcome',context!); winnings = JsonConverters.toDouble(json['winnings']); results = JsonConverters.toStringMap(json['results']); return this; } Map toJson() => { 'id': id, 'betId': betId, 'outcome': JsonConverters.toJson(outcome,'BetOutcome',context!), 'winnings': winnings, 'results': results }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "SettleBet"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'BetOutcome': TypeInfo(TypeOf.Enum, enumValues:BetOutcome.values), 'SettleBet': TypeInfo(TypeOf.Class, create:() => SettleBet()), });