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