toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.currentPassword != null) {
json[r'currentPassword'] = this.currentPassword;
} else {
json[r'currentPassword'] = null;
}
json[r'newPassword'] = this.newPassword;
return json;
}