| POST | /Account/Recovery |
|---|
import 'package:servicestack/servicestack.dart';
class RecoveryRequest implements IConvertible
{
String? CaptchaToken;
String? Email;
bool? PreferMobile;
String? RecoveryId;
bool? UsingMobile;
String? UserType;
RecoveryRequest({this.CaptchaToken,this.Email,this.PreferMobile,this.RecoveryId,this.UsingMobile,this.UserType});
RecoveryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CaptchaToken = json['CaptchaToken'];
Email = json['Email'];
PreferMobile = json['PreferMobile'];
RecoveryId = json['RecoveryId'];
UsingMobile = json['UsingMobile'];
UserType = json['UserType'];
return this;
}
Map<String, dynamic> toJson() => {
'CaptchaToken': CaptchaToken,
'Email': Email,
'PreferMobile': PreferMobile,
'RecoveryId': RecoveryId,
'UsingMobile': UsingMobile,
'UserType': UserType
};
getTypeName() => "RecoveryRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'RecoveryRequest': TypeInfo(TypeOf.Class, create:() => RecoveryRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Account/Recovery HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CaptchaToken: String,
Email: String,
PreferMobile: False,
RecoveryId: String,
UsingMobile: False,
UserType: String
}