mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-18 06:39:14 +00:00
NaiJi
31be961dd0
get /auth/recovery_token post /auth/recovery_token post /auth/recovery_token/use post /auth/new_device/authorize post /auth/new_device delete /auth/new_device get /auth/tokens post /auth/tokens delete /auth/tokens
18 lines
343 B
Dart
18 lines
343 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'device_token.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class DeviceToken {
|
|
DeviceToken({
|
|
required this.device,
|
|
required this.token,
|
|
});
|
|
|
|
final String device;
|
|
final String token;
|
|
|
|
factory DeviceToken.fromJson(Map<String, dynamic> json) =>
|
|
_$DeviceTokenFromJson(json);
|
|
}
|