/* Options: Date: 2025-12-11 14:59:09 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: EIAProductionSeriesByPlantRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum TimeGranularity { Undefined, hourly, daily, weekly, monthy, yearly, fivemin, tenmin, fifteenmin, halfhour, quarterly, twohours, threehours, fourhours, sixhours, eighthours, twelvehours, irregular, } // @Route("/eia-production-request-by-plant", "POST") class EIAProductionSeriesByPlantRequest implements IConvertible, IPost { int? startPlantId; TimeGranularity? timeGranularity; EIAProductionSeriesByPlantRequest({this.startPlantId,this.timeGranularity}); EIAProductionSeriesByPlantRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { startPlantId = json['startPlantId']; timeGranularity = JsonConverters.fromJson(json['timeGranularity'],'TimeGranularity',context!); return this; } Map toJson() => { 'startPlantId': startPlantId, 'timeGranularity': JsonConverters.toJson(timeGranularity,'TimeGranularity',context!) }; getTypeName() => "EIAProductionSeriesByPlantRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: { 'TimeGranularity': TypeInfo(TypeOf.Enum, enumValues:TimeGranularity.values), 'EIAProductionSeriesByPlantRequest': TypeInfo(TypeOf.Class, create:() => EIAProductionSeriesByPlantRequest()), });