All Verbs | /restfiles/ReportLog |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ReportLogRS implements IConvertible
{
bool? isLog;
String? error;
ReportLogRS({this.isLog,this.error});
ReportLogRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
isLog = json['isLog'];
error = json['error'];
return this;
}
Map<String, dynamic> toJson() => {
'isLog': isLog,
'error': error
};
getTypeName() => "ReportLogRS";
TypeContext? context = _ctx;
}
class ReportLogRQ implements IConvertible
{
double? idReport;
String? Parametros;
ReportLogRQ({this.idReport,this.Parametros});
ReportLogRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
idReport = JsonConverters.toDouble(json['idReport']);
Parametros = json['Parametros'];
return this;
}
Map<String, dynamic> toJson() => {
'idReport': idReport,
'Parametros': Parametros
};
getTypeName() => "ReportLogRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'ReportLogRS': TypeInfo(TypeOf.Class, create:() => ReportLogRS()),
'ReportLogRQ': TypeInfo(TypeOf.Class, create:() => ReportLogRQ()),
});
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 /restfiles/ReportLog HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/json
Content-Type: application/json
Content-Length: length
{"idReport":0,"Parametros":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"isLog":false,"error":"String"}