YustNotification class

A representation of a push notification.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

YustNotification({String? forCollection, String? forDocId, String? deepLink, String? title, String? body, DateTime? dispatchAt, bool delivered = false, Map<String, dynamic> data = const {}})
YustNotification.fromJson(Map<String, dynamic> json)
factory

Properties

body String?
getter/setter pair
createdAt DateTime?
getter/setter pairinherited
createdBy String?
getter/setter pairinherited
data Map<String, dynamic>
getter/setter pair
getter/setter pair
delivered bool
getter/setter pair
dispatchAt DateTime?
getter/setter pair
envId String?
getter/setter pairinherited
forCollection String?
getter/setter pair
forDocId String?
getter/setter pair
hasChanges bool
are there changes to be saved?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
modifiedAt DateTime?
getter/setter pairinherited
modifiedBy String?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
getter/setter pair
updateMask Set<String>
The fields that should be updated.
no setterinherited
userId String?
getter/setter pairinherited

Methods

clearUpdateMask() → void
clear the update mask
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDelete() Future<void>
is triggerd when the document is removed
inherited
onSave() Future<void>
is triggerd when the document is saved
inherited
toExportJson() Map<String, dynamic>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

setup(String userId) YustDocSetup<YustNotification>