Map<String, dynamic> toJson() { final _json = <String, dynamic>{}; if (currentPassword != null) { _json[r'current_password'] = currentPassword; } _json[r'new_password'] = newPassword; return _json; }