| PUT | /passwordreset/change |
|---|
import 'package:servicestack/servicestack.dart';
class PasswordResetPasswordRequest implements IConvertible
{
String? email;
String? id;
String? newPassword;
String? newPasswordConfirm;
String? url;
PasswordResetPasswordRequest({this.email,this.id,this.newPassword,this.newPasswordConfirm,this.url});
PasswordResetPasswordRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
email = json['email'];
id = json['id'];
newPassword = json['newPassword'];
newPasswordConfirm = json['newPasswordConfirm'];
url = json['url'];
return this;
}
Map<String, dynamic> toJson() => {
'email': email,
'id': id,
'newPassword': newPassword,
'newPasswordConfirm': newPasswordConfirm,
'url': url
};
getTypeName() => "PasswordResetPasswordRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.sfgtec.com', types: <String, TypeInfo> {
'PasswordResetPasswordRequest': TypeInfo(TypeOf.Class, create:() => PasswordResetPasswordRequest()),
});
Dart PasswordResetPasswordRequest DTOs
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.
PUT /passwordreset/change HTTP/1.1
Host: api.sfgtec.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PasswordResetPasswordRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceInterface">
<Email>String</Email>
<Id>String</Id>
<NewPassword>String</NewPassword>
<NewPasswordConfirm>String</NewPasswordConfirm>
<URL>String</URL>
</PasswordResetPasswordRequest>