/* Options: Date: 2025-12-13 05:44:13 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: ProductioDataSyncRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum ProductionSourceType { undefined, Solar, Wind, Hybrid, } // @Route("/production-data-sync", "POST") class ProductioDataSyncRequest implements IConvertible, IPost { int? coordId; ProductionSourceType? sourceType; int? month; ProductioDataSyncRequest({this.coordId,this.sourceType,this.month}); ProductioDataSyncRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { coordId = json['coordId']; sourceType = JsonConverters.fromJson(json['sourceType'],'ProductionSourceType',context!); month = json['month']; return this; } Map toJson() => { 'coordId': coordId, 'sourceType': JsonConverters.toJson(sourceType,'ProductionSourceType',context!), 'month': month }; getTypeName() => "ProductioDataSyncRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: { 'ProductionSourceType': TypeInfo(TypeOf.Enum, enumValues:ProductionSourceType.values), 'ProductioDataSyncRequest': TypeInfo(TypeOf.Class, create:() => ProductioDataSyncRequest()), });