UserNotificationModel class
- Annotations
-
- @JsonSerializable(ignoreUnannotated: true)
Constructors
-
UserNotificationModel.new({String? uid, DocumentSnapshot<Object?>? snapshot, String? message, String? userId, String? from, ChannelData? channelData, NotificationState? state, List<NotificationChannelType>? channelTypes, required double createdAt, double? updatedAt, double? deliveredAt, double? readAt, Map<String, dynamic>? metadata})
-
-
UserNotificationModel.fromDocumentSnapshot(DocumentSnapshot<Map<String, dynamic>> snapshot)
-
Connect the generated
_$UserNotificationModelFromJson
function to the fromJson
factory.
factory
-
UserNotificationModel.fromJson(Map<String, dynamic> json)
-
Connect the generated
_$UserNotificationModelFromJson
function to the fromJson
factory.
factory
Methods
-
copyWith({String? uid, DocumentSnapshot<Object?>? snapshot, String? message, String? userId, String? from, ChannelData? channelData, NotificationState? state, List<NotificationChannelType>? channelTypes, Map<String, dynamic>? metadata, double? deliveredAt, double? readAt, double? createdAt, double? updatedAt, double? lastUpdatedClaims})
→ dynamic
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
Connect the generated
_$UserNotificationModelToJson
function to the toJson
method.
-
toString()
→ String
-
A string representation of this object.
inherited