selfprivacy.org.app/lib/logic/models/recovery_token_status.g.dart
NaiJi 31be961dd0 Implement server endpoints for tokens
get /auth/recovery_token
post /auth/recovery_token
post /auth/recovery_token/use
post /auth/new_device/authorize
post /auth/new_device
delete /auth/new_device
get /auth/tokens
post /auth/tokens
delete /auth/tokens
2022-05-10 02:16:36 +03:00

20 lines
710 B
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'recovery_token_status.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
RecoveryTokenStatus _$RecoveryTokenStatusFromJson(Map<String, dynamic> json) =>
RecoveryTokenStatus(
exists: json['exists'] as bool,
valid: json['valid'] as bool,
date:
json['date'] == null ? null : DateTime.parse(json['date'] as String),
expiration: json['expiration'] == null
? null
: DateTime.parse(json['expiration'] as String),
uses_left: json['uses_left'] as int?,
);