Skip to content

Commit

Permalink
fix: recipient deserialization problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Nov 2, 2023
1 parent c4b8ed6 commit 610a270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/platform/src/codec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ class Codec extends StandardMessageCodec {

return DevicePushDetails(
recipient:
(recipient != null) ? Map<String, String>.from(recipient) : null,
(recipient != null) ? Map<String, Object>.from(recipient) : null,
state:
_decodeDevicePushState(jsonMap[TxDevicePushDetails.state] as String?),
errorReason: (jsonMapErrorReason != null)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/push_notifications/src/device_push_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:meta/meta.dart';
class DevicePushDetails {
/// A [Map] object of key-value pairs that consists of the push transport and
/// address.
final Map<String, String>? recipient;
final Map<String, Object>? recipient;

/// The current state of the push registration.
final DevicePushState? state;
Expand Down

0 comments on commit 610a270

Please sign in to comment.