/* Options: Date: 2025-12-06 07:05:10 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: LotteryAddRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BackofficeApi; import 'package:servicestack/servicestack.dart'; class LotteryAddResponse implements IConvertible { int? id; LotteryAddResponse({this.id}); LotteryAddResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; getTypeName() => "LotteryAddResponse"; TypeContext? context = _ctx; } // @Route("/lottery/add", "POST") class LotteryAddRequest implements IReturn, IPost, IConvertible { DateTime? startAt; DateTime? stopAt; String? title; String? description; String? countryCode; LotteryAddRequest({this.startAt,this.stopAt,this.title,this.description,this.countryCode}); LotteryAddRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { startAt = JsonConverters.fromJson(json['startAt'],'DateTime',context!); stopAt = JsonConverters.fromJson(json['stopAt'],'DateTime',context!); title = json['title']; description = json['description']; countryCode = json['countryCode']; return this; } Map toJson() => { 'startAt': JsonConverters.toJson(startAt,'DateTime',context!), 'stopAt': JsonConverters.toJson(stopAt,'DateTime',context!), 'title': title, 'description': description, 'countryCode': countryCode }; createResponse() => LotteryAddResponse(); getResponseTypeName() => "LotteryAddResponse"; getTypeName() => "LotteryAddRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BackofficeApi', types: { 'LotteryAddResponse': TypeInfo(TypeOf.Class, create:() => LotteryAddResponse()), 'LotteryAddRequest': TypeInfo(TypeOf.Class, create:() => LotteryAddRequest()), });