fromJson static method
Inherited by: DeviceTokenApplePush DeviceTokenApplePushVoIP DeviceTokenBlackBerryPush DeviceTokenFirebaseCloudMessaging DeviceTokenHuaweiPush DeviceTokenMicrosoftPush DeviceTokenMicrosoftPushVoIP DeviceTokenSimplePush DeviceTokenTizenPush DeviceTokenUbuntuPush DeviceTokenWebPush DeviceTokenWindowsPush
Implementation
static DeviceTokenHuaweiPush? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return DeviceTokenHuaweiPush(
token: (json['token'] as String?) ?? '',
encrypt: (json['encrypt'] as bool?) ?? false,
);
}