mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-08 01:43:13 +00:00
21 lines
411 B
Dart
21 lines
411 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;
|
|
}
|