| PUT | /PutEmailAddress_RegRequestDate/ |
|---|
import 'package:servicestack/servicestack.dart';
class PutEmailAdd_RegResponse implements IConvertible
{
bool? Success;
bool? AlreadyRegistered;
String? Error;
PutEmailAdd_RegResponse({this.Success,this.AlreadyRegistered,this.Error});
PutEmailAdd_RegResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
AlreadyRegistered = json['AlreadyRegistered'];
Error = json['Error'];
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'AlreadyRegistered': AlreadyRegistered,
'Error': Error
};
getTypeName() => "PutEmailAdd_RegResponse";
TypeContext? context = _ctx;
}
class PutEmailAdd_RegRequest implements IConvertible
{
int? BPID;
String? EmailAddress;
PutEmailAdd_RegRequest({this.BPID,this.EmailAddress});
PutEmailAdd_RegRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BPID = json['BPID'];
EmailAddress = json['EmailAddress'];
return this;
}
Map<String, dynamic> toJson() => {
'BPID': BPID,
'EmailAddress': EmailAddress
};
getTypeName() => "PutEmailAdd_RegRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
'PutEmailAdd_RegResponse': TypeInfo(TypeOf.Class, create:() => PutEmailAdd_RegResponse()),
'PutEmailAdd_RegRequest': TypeInfo(TypeOf.Class, create:() => PutEmailAdd_RegRequest()),
});
Dart PutEmailAdd_RegRequest DTOs
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.
PUT /PutEmailAddress_RegRequestDate/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{"BPID":0,"EmailAddress":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Success":false,"AlreadyRegistered":false,"Error":"String"}