All Verbs | /form/getfilterform |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetFilterFormsRS implements IConvertible
{
List<Map<String,dynamic>>? Data;
String? ErrorMessage;
String? Status;
GetFilterFormsRS({this.Data,this.ErrorMessage,this.Status});
GetFilterFormsRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Data = JsonConverters.fromJson(json['Data'],'List<Map<String,dynamic>>',context!);
ErrorMessage = json['ErrorMessage'];
Status = json['Status'];
return this;
}
Map<String, dynamic> toJson() => {
'Data': JsonConverters.toJson(Data,'List<Map<String,dynamic>>',context!),
'ErrorMessage': ErrorMessage,
'Status': Status
};
getTypeName() => "GetFilterFormsRS";
TypeContext? context = _ctx;
}
class GetFilterFormsRQ implements IConvertible
{
int? Codigo;
String? FormaManual;
String? Tipo;
GetFilterFormsRQ({this.Codigo,this.FormaManual,this.Tipo});
GetFilterFormsRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Codigo = json['Codigo'];
FormaManual = json['FormaManual'];
Tipo = json['Tipo'];
return this;
}
Map<String, dynamic> toJson() => {
'Codigo': Codigo,
'FormaManual': FormaManual,
'Tipo': Tipo
};
getTypeName() => "GetFilterFormsRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'GetFilterFormsRS': TypeInfo(TypeOf.Class, create:() => GetFilterFormsRS()),
'List<Map<String,dynamic>>': TypeInfo(TypeOf.Class, create:() => <Map<String,dynamic>>[]),
'Map<String,dynamic>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic>()),
'GetFilterFormsRQ': TypeInfo(TypeOf.Class, create:() => GetFilterFormsRQ()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /form/getfilterform HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetFilterFormsRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<Codigo>0</Codigo>
<FormaManual>String</FormaManual>
<Tipo>String</Tipo>
</GetFilterFormsRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetFilterFormsRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:ArrayOfKeyValueOfstringanyType> <d2p1:KeyValueOfstringanyType> <d2p1:Key>String</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </d2p1:ArrayOfKeyValueOfstringanyType> </Data> <ErrorMessage>String</ErrorMessage> <Status>String</Status> </GetFilterFormsRS>