mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 20:16:56 +00:00
21 lines
436 B
Dart
21 lines
436 B
Dart
|
import 'package:easy_localization/easy_localization.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);
|
||
|
}
|