19 lines
504 B
Dart
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);
|
|
}
|