CreateTemporaryPassword

This commit is contained in:
mohammad
2024-06-29 23:38:52 +03:00
parent 8d6d5da5cd
commit e8184c00ff
14 changed files with 680 additions and 342 deletions

View File

@ -0,0 +1,37 @@
class TemporaryPassword {
final int effectiveTime;
final int id;
final int invalidTime;
final String name;
final int phase;
final String phone;
final int sn;
final String timeZone;
final int type;
TemporaryPassword({
required this.effectiveTime,
required this.id,
required this.invalidTime,
required this.name,
required this.phase,
required this.phone,
required this.sn,
required this.timeZone,
required this.type,
});
factory TemporaryPassword.fromJson(Map<String, dynamic> json) {
return TemporaryPassword(
effectiveTime: json['effectiveTime'],
id: json['id'],
invalidTime: json['invalidTime'],
name: json['name'],
phase: json['phase'],
phone: json['phone'] ?? '',
sn: json['sn'],
timeZone: json['timeZone'] ?? '',
type: json['type'],
);
}
}