selfprivacy.org.app/lib/logic/models/json/api_token.dart
Inex Code bf79fb1adf - Refactor Hive boxes
- Delete SSH generation leftovers
- Migrate users box to an encrypted box
2022-05-17 23:08:28 +03:00

20 lines
377 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'api_token.g.dart';
@JsonSerializable()
class ApiToken {
ApiToken({
required this.name,
required this.date,
required this.is_caller,
});
final String name;
final DateTime date;
final bool is_caller;
factory ApiToken.fromJson(Map<String, dynamic> json) =>
_$ApiTokenFromJson(json);
}