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

18 lines
343 B
Dart
Raw Normal View History

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