Files
sendico/frontend/pshared/lib/api/requests/password/change.dart
2025-12-22 21:22:51 +01:00

21 lines
545 B
Dart

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