Skip to content

Commit e086620

Browse files
committed
refactor(push_notification): update FirebaseMessage data payload type
- Import core package for PushNotificationPayload - Change data type from Map<String, dynamic> to PushNotificationPayload
1 parent d7366ed commit e086620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/models/push_notification/firebase_request_body.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:core/core.dart';
12
import 'package:equatable/equatable.dart';
23
import 'package:json_annotation/json_annotation.dart';
34

@@ -41,7 +42,7 @@ class FirebaseMessage extends Equatable {
4142
final FirebaseNotification notification;
4243

4344
/// The custom data payload.
44-
final Map<String, dynamic> data;
45+
final PushNotificationPayload data;
4546

4647
/// Converts this [FirebaseMessage] instance to a JSON map.
4748
Map<String, dynamic> toJson() => _$FirebaseMessageToJson(this);

0 commit comments

Comments
 (0)