| POST | /ValidateDetails/ |
|---|
import 'package:servicestack/servicestack.dart';
class ValidateDetailsResponse implements IConvertible
{
int BPID = 0;
bool IsValid;
bool IsLocked;
int AttemptsRemaining = 0;
String? Error;
ValidateDetailsResponse({this.BPID,this.IsValid,this.IsLocked,this.AttemptsRemaining,this.Error});
ValidateDetailsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BPID = json['BPID'];
IsValid = json['IsValid'];
IsLocked = json['IsLocked'];
AttemptsRemaining = json['AttemptsRemaining'];
Error = json['Error'];
return this;
}
Map<String, dynamic> toJson() => {
'BPID': BPID,
'IsValid': IsValid,
'IsLocked': IsLocked,
'AttemptsRemaining': AttemptsRemaining,
'Error': Error
};
getTypeName() => "ValidateDetailsResponse";
TypeContext? context = _ctx;
}
class ValidateDetailsRequest implements IConvertible
{
String GUID = "";
String? Postcode;
String? Number4;
String? Email;
String? EmailConfirm;
bool IsSignedUp;
bool IsPrivacyChecked;
ValidateDetailsRequest({this.GUID,this.Postcode,this.Number4,this.Email,this.EmailConfirm,this.IsSignedUp,this.IsPrivacyChecked});
ValidateDetailsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
GUID = json['GUID'];
Postcode = json['Postcode'];
Number4 = json['Number4'];
Email = json['Email'];
EmailConfirm = json['EmailConfirm'];
IsSignedUp = json['IsSignedUp'];
IsPrivacyChecked = json['IsPrivacyChecked'];
return this;
}
Map<String, dynamic> toJson() => {
'GUID': GUID,
'Postcode': Postcode,
'Number4': Number4,
'Email': Email,
'EmailConfirm': EmailConfirm,
'IsSignedUp': IsSignedUp,
'IsPrivacyChecked': IsPrivacyChecked
};
getTypeName() => "ValidateDetailsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
'ValidateDetailsResponse': TypeInfo(TypeOf.Class, create:() => ValidateDetailsResponse()),
'ValidateDetailsRequest': TypeInfo(TypeOf.Class, create:() => ValidateDetailsRequest()),
});
Dart ValidateDetailsRequest 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.
POST /ValidateDetails/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{"GUID":"00000000000000000000000000000000","Postcode":"String","Number4":"String","Email":"String","EmailConfirm":"String","IsSignedUp":false,"IsPrivacyChecked":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"BPID":0,"IsValid":false,"IsLocked":false,"AttemptsRemaining":0,"Error":"String"}