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

Properties

channelData ChannelData?
final
channelTypes List<NotificationChannelType>?
final
createdAt double
final
deliveredAt double?
final
from String?
final
hashCode int
The hash code for this object.
no setterinherited
message String?
final
metadata Map<String, dynamic>?
final
readAt double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot ↔ DocumentSnapshot<Object?>?
getter/setter pair
state NotificationState?
final
uid String?
getter/setter pair
updatedAt double?
final
userId String?
final

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

Operators

operator ==(Object other) bool
The equality operator.
inherited