NotificationDetails class
- Annotations
-
- @freezed
Constructors
-
NotificationDetails({@JsonKey(name: 'id') String? id, @JsonKey(name: 'title') String? title, @JsonKey(name: 'body') String? body, @JsonKey(name: 'type', defaultValue: NotificationType.UNKNOWN) NotificationType? type, @JsonKey(name: 'isRead', defaultValue: false) bool? isRead, @JsonKey(name: 'createdAt') String? createdAt, @JsonKey(name: 'actions') List<
NotificationActions> ? actions, @JsonKey(name: 'status') String? status}) -
factory
-
NotificationDetails.fromJson(Map<
String, dynamic> json) -
factory
- NotificationDetails.initial()
-
factory
Properties
-
actions
→ List<
NotificationActions> ? -
no setterinherited
- body → String?
-
no setterinherited
-
copyWith
→ $NotificationDetailsCopyWith<
NotificationDetails> -
no setterinherited
- createdAt → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
no setterinherited
- isRead → bool?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String?
-
no setterinherited
- title → String?
-
no setterinherited
- type → NotificationType?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited