/* Options: Date: 2025-12-13 05:53:58 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://catalog-jobs-dev.power.dev //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TbxRunRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum PriceMarketType { Undefined, Realtime, DayAhead, DART, } // @Route("/tbx-run", "POST") class TbxRunRequest implements IConvertible, IPost { PriceMarketType? marketType; int? nodeId; DateTime? startDate; DateTime? endDate; TbxRunRequest({this.marketType,this.nodeId,this.startDate,this.endDate}); TbxRunRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { marketType = JsonConverters.fromJson(json['marketType'],'PriceMarketType',context!); nodeId = json['nodeId']; startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); return this; } Map toJson() => { 'marketType': JsonConverters.toJson(marketType,'PriceMarketType',context!), 'nodeId': nodeId, 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!) }; getTypeName() => "TbxRunRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: { 'PriceMarketType': TypeInfo(TypeOf.Enum, enumValues:PriceMarketType.values), 'TbxRunRequest': TypeInfo(TypeOf.Class, create:() => TbxRunRequest()), });