| POST | /fix-location-price |
|---|
import 'package:servicestack/servicestack.dart';
enum DataProvider
{
Undefined,
SPP,
ERCOT,
MISO,
CAISO,
PJM,
ISONE,
NYISO,
NW,
SW,
SE,
AESO,
IESO,
CENACE,
NONISO,
EIA,
PNM,
NREL,
NOAA,
ENTSOE,
EPIAS,
SELF,
}
class FixLocationPriceRequest implements IConvertible
{
int? locationId;
int? type;
DateTime? minDate;
DataProvider? provider;
FixLocationPriceRequest({this.locationId,this.type,this.minDate,this.provider});
FixLocationPriceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
locationId = json['locationId'];
type = json['type'];
minDate = JsonConverters.fromJson(json['minDate'],'DateTime',context!);
provider = JsonConverters.fromJson(json['provider'],'DataProvider',context!);
return this;
}
Map<String, dynamic> toJson() => {
'locationId': locationId,
'type': type,
'minDate': JsonConverters.toJson(minDate,'DateTime',context!),
'provider': JsonConverters.toJson(provider,'DataProvider',context!)
};
getTypeName() => "FixLocationPriceRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
'DataProvider': TypeInfo(TypeOf.Enum, enumValues:DataProvider.values),
'FixLocationPriceRequest': TypeInfo(TypeOf.Class, create:() => FixLocationPriceRequest()),
});
Dart FixLocationPriceRequest 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 /fix-location-price HTTP/1.1
Host: catalog-jobs-dev.power.dev
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"locationId":0,"type":0,"minDate":"\/Date(-62135596800000-0000)\/","provider":"Undefined"}