FirebaseMessage class

Annotations
  • @JsonSerializable()

Constructors

FirebaseMessage({String? name, Map<String, String>? data, FirebaseNotification? notification, FirebaseAndroidConfig? android, FirebaseWebpushConfig? webpush, FirebaseApnsConfig? apns, FirebaseFcmOptions? fcmOptions, String? token, String? topic, String? condition})
const
FirebaseMessage.fromJson(Map<String, dynamic> json)
factory

Properties

android FirebaseAndroidConfig?
Input only. Android specific options for messages sent through FCM connection server.
final
apns FirebaseApnsConfig?
final
condition String?
Condition to send a message to, e.g. "'foo' in topics && 'bar' in topics". Union field target. Required. Input only. Target to send a message to. target can be only one of token, topic or condition.
final
data Map<String, String>?
Input only. Arbitrary key/value payload. The key should not be a reserved word ("from", "message_type", or any word starting with "google" or "gcm").
final
fcmOptions FirebaseFcmOptions?
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Output Only. The identifier of the message sent, in the format of projects/*/messages/{message_id}.
final
notification FirebaseNotification?
Input only. Basic notification template to use across all platforms.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
Registration token to send a message to. Union field target. Required. Input only. Target to send a message to. target can be only one of token, topic or condition.
final
topic String?
Topic name to send a message to, e.g. "weather". Note: "/topics/" prefix should not be provided. Union field target. Required. Input only. Target to send a message to. target can be only one of token, topic or condition.
final
webpush FirebaseWebpushConfig?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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