selfprivacy.org.app/lib/logic/models/json/device_token.dart
NaiJi 129c1bb4c6 Refactor infrastructure
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
2022-05-14 05:54:40 +03:00

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