/* Options: Date: 2024-12-23 11:42:32 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LotteryAcquireTicketsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; class LotteryAcquireTicketsResponse implements IConvertible { int? newTicketsAcquired; int? pointsSpent; int? totalPointsLeft; int? totalTicketsInLottery; LotteryAcquireTicketsResponse({this.newTicketsAcquired,this.pointsSpent,this.totalPointsLeft,this.totalTicketsInLottery}); LotteryAcquireTicketsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { newTicketsAcquired = json['newTicketsAcquired']; pointsSpent = json['pointsSpent']; totalPointsLeft = json['totalPointsLeft']; totalTicketsInLottery = json['totalTicketsInLottery']; return this; } Map toJson() => { 'newTicketsAcquired': newTicketsAcquired, 'pointsSpent': pointsSpent, 'totalPointsLeft': totalPointsLeft, 'totalTicketsInLottery': totalTicketsInLottery }; getTypeName() => "LotteryAcquireTicketsResponse"; TypeContext? context = _ctx; } // @Route("/lottery/points", "POST") class LotteryAcquireTicketsRequest implements IReturn, IPost, IConvertible { int? pointsToConvert; LotteryAcquireTicketsRequest({this.pointsToConvert}); LotteryAcquireTicketsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { pointsToConvert = json['pointsToConvert']; return this; } Map toJson() => { 'pointsToConvert': pointsToConvert }; createResponse() => LotteryAcquireTicketsResponse(); getResponseTypeName() => "LotteryAcquireTicketsResponse"; getTypeName() => "LotteryAcquireTicketsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'LotteryAcquireTicketsResponse': TypeInfo(TypeOf.Class, create:() => LotteryAcquireTicketsResponse()), 'LotteryAcquireTicketsRequest': TypeInfo(TypeOf.Class, create:() => LotteryAcquireTicketsRequest()), });