mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-16 05:33:17 +00:00
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);
|
||
|
}
|