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

17 lines
348 B
Dart
Raw Normal View History

import 'package:json_annotation/json_annotation.dart';
part 'device_token.g.dart';
@JsonSerializable()
class DeviceToken {
2022-06-05 19:36:32 +00:00
factory DeviceToken.fromJson(final Map<String, dynamic> json) =>
_$DeviceTokenFromJson(json);
DeviceToken({
required this.device,
required this.token,
});
final String device;
final String token;
}