selfprivacy.org.app/lib/logic/models/json/api_token.dart

21 lines
411 B
Dart
Raw Normal View History

import 'package:json_annotation/json_annotation.dart';
part 'api_token.g.dart';
@JsonSerializable()
class ApiToken {
2022-06-05 19:36:32 +00:00
factory ApiToken.fromJson(final Map<String, dynamic> json) =>
_$ApiTokenFromJson(json);
ApiToken({
required this.name,
required this.date,
2022-05-24 18:55:39 +00:00
required this.isCaller,
});
final String name;
final DateTime date;
2022-05-24 18:55:39 +00:00
@JsonKey(name: 'is_caller')
final bool isCaller;
}