import 'package:servicestack/servicestack.dart';
class AddDurchschnittResponse implements IConvertible
{
bool? Status;
AddDurchschnittResponse({this.Status});
AddDurchschnittResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Status = json['Status'];
return this;
}
Map<String, dynamic> toJson() => {
'Status': Status
};
getTypeName() => "AddDurchschnittResponse";
TypeContext? context = _ctx;
}
class AddDurchschnittRequest implements IConvertible
{
String? Kategorie;
double? Quadratmeter;
double? KWH;
double? HGT;
AddDurchschnittRequest({this.Kategorie,this.Quadratmeter,this.KWH,this.HGT});
AddDurchschnittRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Kategorie = json['Kategorie'];
Quadratmeter = JsonConverters.toDouble(json['Quadratmeter']);
KWH = JsonConverters.toDouble(json['KWH']);
HGT = JsonConverters.toDouble(json['HGT']);
return this;
}
Map<String, dynamic> toJson() => {
'Kategorie': Kategorie,
'Quadratmeter': Quadratmeter,
'KWH': KWH,
'HGT': HGT
};
getTypeName() => "AddDurchschnittRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: '52.142.207.43', types: <String, TypeInfo> {
'AddDurchschnittResponse': TypeInfo(TypeOf.Class, create:() => AddDurchschnittResponse()),
'AddDurchschnittRequest': TypeInfo(TypeOf.Class, create:() => AddDurchschnittRequest()),
});
Dart AddDurchschnittRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/AddDurchschnittRequest HTTP/1.1
Host: 52.142.207.43
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Kategorie":"String","Quadratmeter":0,"KWH":0,"HGT":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Status":false}