All Verbs | /Utilidades/Notificar |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class NotificarEmailRS implements IConvertible
{
int? estado;
NotificarEmailRS({this.estado});
NotificarEmailRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
estado = json['estado'];
return this;
}
Map<String, dynamic> toJson() => {
'estado': estado
};
getTypeName() => "NotificarEmailRS";
TypeContext? context = _ctx;
}
class NotificarEmailRQ implements IConvertible
{
String? email;
String? asunto;
String? body;
NotificarEmailRQ({this.email,this.asunto,this.body});
NotificarEmailRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
email = json['email'];
asunto = json['asunto'];
body = json['body'];
return this;
}
Map<String, dynamic> toJson() => {
'email': email,
'asunto': asunto,
'body': body
};
getTypeName() => "NotificarEmailRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'NotificarEmailRS': TypeInfo(TypeOf.Class, create:() => NotificarEmailRS()),
'NotificarEmailRQ': TypeInfo(TypeOf.Class, create:() => NotificarEmailRQ()),
});
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 /Utilidades/Notificar HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/json
Content-Type: application/json
Content-Length: length
{"email":"String","asunto":"String","body":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"estado":0}