OrgNotificationModel class abstract
- Available extensions
- Annotations
Constructors
-
OrgNotificationModel({required String id, required String orgId, required String type, required String title, required String body, @Default({}) Map<
String, dynamic> metadata, DateTime? readAt, required DateTime createdAt}) -
constfactory
-
OrgNotificationModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- body → String
-
no setterinherited
-
copyWith
→ $OrgNotificationModelCopyWith<
OrgNotificationModel> -
Create a copy of OrgNotificationModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
-
metadata
→ Map<
String, dynamic> -
no setterinherited
- orgId → String
-
no setterinherited
- readAt → DateTime?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
no setterinherited
- type → String
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_OrgNotificationModel value)) → TResult -
Available on OrgNotificationModel, provided by the OrgNotificationModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_OrgNotificationModel value)?) → TResult? -
Available on OrgNotificationModel, provided by the OrgNotificationModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_OrgNotificationModel value)?, {required TResult orElse()}) → TResult -
Available on OrgNotificationModel, provided by the OrgNotificationModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String orgId, String type, String title, String body, Map< String, dynamic> metadata, DateTime? readAt, DateTime createdAt)?, {required TResult orElse()}) → TResult -
Available on OrgNotificationModel, provided by the OrgNotificationModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
) → OrgNotification -
toJson(
) → Map< String, dynamic> -
Serializes this OrgNotificationModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String orgId, String type, String title, String body, Map< String, dynamic> metadata, DateTime? readAt, DateTime createdAt)) → TResult -
Available on OrgNotificationModel, provided by the OrgNotificationModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String orgId, String type, String title, String body, Map< String, dynamic> metadata, DateTime? readAt, DateTime createdAt)?) → TResult? -
Available on OrgNotificationModel, provided by the OrgNotificationModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited