All Verbs | /form/permissionsxbuttons |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetFormPermBtnsRS implements IConvertible
{
List<Map<String,dynamic>>? Data;
String? ErrorMessage;
String? Status;
GetFormPermBtnsRS({this.Data,this.ErrorMessage,this.Status});
GetFormPermBtnsRS.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() => "GetFormPermBtnsRS";
TypeContext? context = _ctx;
}
class GetFormPermBtnsRQ implements IConvertible
{
int? form;
int? modu;
GetFormPermBtnsRQ({this.form,this.modu});
GetFormPermBtnsRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
form = json['form'];
modu = json['modu'];
return this;
}
Map<String, dynamic> toJson() => {
'form': form,
'modu': modu
};
getTypeName() => "GetFormPermBtnsRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'GetFormPermBtnsRS': TypeInfo(TypeOf.Class, create:() => GetFormPermBtnsRS()),
'List<Map<String,dynamic>>': TypeInfo(TypeOf.Class, create:() => <Map<String,dynamic>>[]),
'Map<String,dynamic>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic>()),
'GetFormPermBtnsRQ': TypeInfo(TypeOf.Class, create:() => GetFormPermBtnsRQ()),
});
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/permissionsxbuttons HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetFormPermBtnsRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<form>0</form>
<modu>0</modu>
</GetFormPermBtnsRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetFormPermBtnsRS 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> </GetFormPermBtnsRS>