mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 22:29:15 +00:00
20 lines
410 B
Dart
20 lines
410 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'api_token.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class ApiToken {
|
|
factory ApiToken.fromJson(final Map<String, dynamic> json) =>
|
|
_$ApiTokenFromJson(json);
|
|
ApiToken({
|
|
required this.name,
|
|
required this.date,
|
|
required this.isCaller,
|
|
});
|
|
|
|
final String name;
|
|
final DateTime date;
|
|
@JsonKey(name: 'is_caller')
|
|
final bool isCaller;
|
|
}
|