Files
sendico/frontend/pshared/lib/api/requests/change_password.dart
2025-11-13 15:06:15 +03:00

19 lines
504 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'change_password.g.dart';
@JsonSerializable(explicitToJson: true)
class ChangePassword {
@JsonKey(name: 'old')
final String oldPassword;
@JsonKey(name: 'new')
final String newPassword;
const ChangePassword({required this.oldPassword, required this.newPassword});
factory ChangePassword.fromJson(Map<String, dynamic> json) => _$ChangePasswordFromJson(json);
Map<String, dynamic> toJson() => _$ChangePasswordToJson(this);
}