All Verbs | /utilidades/FilesConvertPdf |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class FilesRS implements IConvertible
{
String? Nombre;
String? Base64File;
String? Ext;
FilesRS({this.Nombre,this.Base64File,this.Ext});
FilesRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Nombre = json['Nombre'];
Base64File = json['Base64File'];
Ext = json['Ext'];
return this;
}
Map<String, dynamic> toJson() => {
'Nombre': Nombre,
'Base64File': Base64File,
'Ext': Ext
};
getTypeName() => "FilesRS";
TypeContext? context = _ctx;
}
class FileUtilsRS implements IConvertible
{
bool? Success;
String? ErrorMessage;
List<FilesRS>? Archivos;
FileUtilsRS({this.Success,this.ErrorMessage,this.Archivos});
FileUtilsRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
ErrorMessage = json['ErrorMessage'];
Archivos = JsonConverters.fromJson(json['Archivos'],'List<FilesRS>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'ErrorMessage': ErrorMessage,
'Archivos': JsonConverters.toJson(Archivos,'List<FilesRS>',context!)
};
getTypeName() => "FileUtilsRS";
TypeContext? context = _ctx;
}
class FilesData implements IConvertible
{
String? Nombre;
String? Base64File;
String? ExtRQ;
FilesData({this.Nombre,this.Base64File,this.ExtRQ});
FilesData.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Nombre = json['Nombre'];
Base64File = json['Base64File'];
ExtRQ = json['ExtRQ'];
return this;
}
Map<String, dynamic> toJson() => {
'Nombre': Nombre,
'Base64File': Base64File,
'ExtRQ': ExtRQ
};
getTypeName() => "FilesData";
TypeContext? context = _ctx;
}
class FileUtilsRQ implements IConvertible
{
List<FilesData>? Files;
bool? DocMerge;
FileUtilsRQ({this.Files,this.DocMerge});
FileUtilsRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Files = JsonConverters.fromJson(json['Files'],'List<FilesData>',context!);
DocMerge = json['DocMerge'];
return this;
}
Map<String, dynamic> toJson() => {
'Files': JsonConverters.toJson(Files,'List<FilesData>',context!),
'DocMerge': DocMerge
};
getTypeName() => "FileUtilsRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'FilesRS': TypeInfo(TypeOf.Class, create:() => FilesRS()),
'FileUtilsRS': TypeInfo(TypeOf.Class, create:() => FileUtilsRS()),
'List<FilesRS>': TypeInfo(TypeOf.Class, create:() => <FilesRS>[]),
'FilesData': TypeInfo(TypeOf.Class, create:() => FilesData()),
'FileUtilsRQ': TypeInfo(TypeOf.Class, create:() => FileUtilsRQ()),
'List<FilesData>': TypeInfo(TypeOf.Class, create:() => <FilesData>[]),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /utilidades/FilesConvertPdf HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Files":[{"Nombre":"String","Base64File":"String","ExtRQ":"String"}],"DocMerge":false}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Success":false,"ErrorMessage":"String","Archivos":[{"Nombre":"String","Base64File":"String","Ext":"String"}]}