/* Options: Date: 2025-12-06 07:07:09 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //GlobalNamespace: BackofficeApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LotteryGetAllRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; enum LotteryState { Draft, Published, Archived, } enum TimeRelativeLotteryState { Draft, PublishedUpcoming, PublishedActive, PublishedEndedDrawWinner, PublishedEndedContactWinner, Archived, } class LotteryListingDto implements IConvertible { int? id; DateTime? startAt; DateTime? stopAt; String? title; String? countryCode; TimeRelativeLotteryState? state; LotteryListingDto({this.id,this.startAt,this.stopAt,this.title,this.countryCode,this.state}); LotteryListingDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; startAt = JsonConverters.fromJson(json['startAt'],'DateTime',context!); stopAt = JsonConverters.fromJson(json['stopAt'],'DateTime',context!); title = json['title']; countryCode = json['countryCode']; state = JsonConverters.fromJson(json['state'],'TimeRelativeLotteryState',context!); return this; } Map toJson() => { 'id': id, 'startAt': JsonConverters.toJson(startAt,'DateTime',context!), 'stopAt': JsonConverters.toJson(stopAt,'DateTime',context!), 'title': title, 'countryCode': countryCode, 'state': JsonConverters.toJson(state,'TimeRelativeLotteryState',context!) }; getTypeName() => "LotteryListingDto"; TypeContext? context = _ctx; } class LotteryGetAllResponse implements IConvertible { List? lotteries = []; LotteryGetAllResponse({this.lotteries}); LotteryGetAllResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { lotteries = JsonConverters.fromJson(json['lotteries'],'List',context!); return this; } Map toJson() => { 'lotteries': JsonConverters.toJson(lotteries,'List',context!) }; getTypeName() => "LotteryGetAllResponse"; TypeContext? context = _ctx; } // @Route("/lottery/get_all", "GET") class LotteryGetAllRequest implements IReturn, IGet, IConvertible { LotteryState? state; LotteryGetAllRequest({this.state}); LotteryGetAllRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { state = JsonConverters.fromJson(json['state'],'LotteryState',context!); return this; } Map toJson() => { 'state': JsonConverters.toJson(state,'LotteryState',context!) }; createResponse() => LotteryGetAllResponse(); getResponseTypeName() => "LotteryGetAllResponse"; getTypeName() => "LotteryGetAllRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'LotteryState': TypeInfo(TypeOf.Enum, enumValues:LotteryState.values), 'TimeRelativeLotteryState': TypeInfo(TypeOf.Enum, enumValues:TimeRelativeLotteryState.values), 'LotteryListingDto': TypeInfo(TypeOf.Class, create:() => LotteryListingDto()), 'LotteryGetAllResponse': TypeInfo(TypeOf.Class, create:() => LotteryGetAllResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LotteryGetAllRequest': TypeInfo(TypeOf.Class, create:() => LotteryGetAllRequest()), });