| POST | /awss3-sync-node-files |
|---|
import 'package:servicestack/servicestack.dart';
enum PriceMarketType
{
Undefined,
Realtime,
DayAhead,
DART,
}
class SyncNodeFilesRequest implements IConvertible
{
String? type;
PriceMarketType? marketType;
SyncNodeFilesRequest({this.type,this.marketType});
SyncNodeFilesRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
type = json['type'];
marketType = JsonConverters.fromJson(json['marketType'],'PriceMarketType',context!);
return this;
}
Map<String, dynamic> toJson() => {
'type': type,
'marketType': JsonConverters.toJson(marketType,'PriceMarketType',context!)
};
getTypeName() => "SyncNodeFilesRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
'PriceMarketType': TypeInfo(TypeOf.Enum, enumValues:PriceMarketType.values),
'SyncNodeFilesRequest': TypeInfo(TypeOf.Class, create:() => SyncNodeFilesRequest()),
});
Dart SyncNodeFilesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /awss3-sync-node-files HTTP/1.1
Host: catalog-jobs-dev.power.dev
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"type":"String","marketType":"Undefined"}