selfprivacy.org.app/lib/logic/models/json/api_token.dart
2022-06-05 22:36:32 +03:00

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;
}