PushNotificationModel class abstract
- Implemented types
Constructors
-
PushNotificationModel({required String title, String? body, required DateTime? createdAt, Map<
String, dynamic> ? rawMeta, PushNotificationMetadata? meta, String? collapseKey}) -
factory
Properties
- body → String?
-
no setterinherited
- collapseKey → String?
-
no setterinherited
- createdAt → DateTime?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- meta → PushNotificationMetadata?
-
no setterinherited
-
rawMeta
→ Map<
String, dynamic> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(PushNotificationModelBuilder)) → PushNotificationModel -
Rebuilds the instance.
inherited
-
toBuilder(
) → PushNotificationModelBuilder -
Converts the instance to a builder
B.inherited -
toJson(
) → String -
toString(
) → String -
A string representation of this object.
inherited
-
withParsedMeta(
PushNotificationMetadataMapper? mapper, [Map< String, dynamic> ? map]) → PushNotificationModel -
This method will return a new instance with correct decoded metadata of PushNotificationMetadata model
If you are implementing a custom implementation of PushNotificationModel class you must make sure you
are implementing this method and using to type your meta
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
PushNotificationModel> -
no setter
Static Methods
-
fromJson(
String jsonString) → PushNotificationModel -
fromMap(
Map< String, dynamic> map) → PushNotificationModel