selfprivacy.org.app/lib/logic/models/json/recovery_token_status.dart
NaiJi 129c1bb4c6 Refactor infrastructure
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
2022-05-14 05:54:40 +03:00

24 lines
514 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'recovery_token_status.g.dart';
@JsonSerializable()
class RecoveryTokenStatus {
RecoveryTokenStatus({
required this.exists,
required this.valid,
this.date,
this.expiration,
this.uses_left,
});
final bool exists;
final DateTime? date;
final DateTime? expiration;
final int? uses_left;
final bool valid;
factory RecoveryTokenStatus.fromJson(Map<String, dynamic> json) =>
_$RecoveryTokenStatusFromJson(json);
}