TF-1204 Add firebase object and capability

This commit is contained in:
dab246
2022-11-15 15:41:59 +07:00
committed by Dat H. Pham
parent dcdec54dd9
commit d42f44b870
14 changed files with 551 additions and 0 deletions
@@ -0,0 +1,12 @@
import 'package:fcm/model/device_client_id.dart';
import 'package:json_annotation/json_annotation.dart';
class DeviceClientIdNullableConverter implements JsonConverter<DeviceClientId?, String?> {
const DeviceClientIdNullableConverter();
@override
DeviceClientId? fromJson(String? json) => json != null ? DeviceClientId(json) : null;
@override
String? toJson(DeviceClientId? object) => object?.value;
}