NotificationChannel class Null safety

A NotificationChannel is a medium through which an alert is delivered when a policy violation is detected.

Examples of channels include email, SMS, and third-party messaging applications. Fields containing sensitive information like authentication tokens or contact info are only partially populated on retrieval.


NotificationChannel({MutationRecord? creationRecord, String? description, String? displayName, bool? enabled, Map<String, String>? labels, List<MutationRecord>? mutationRecords, String? name, String? type, Map<String, String>? userLabels, String? verificationStatus})
NotificationChannel.fromJson(Map json_)


creationRecord MutationRecord?
Record of the creation of this channel.
read / write
description String?
An optional human-readable description of this notification channel.
read / write
displayName String?
An optional human-readable name for this notification channel.
read / write
enabled bool?
Whether notifications are forwarded to the described channel.
read / write
hashCode int
The hash code for this object.
labels Map<String, String>?
Configuration fields that define the channel and its behavior.
read / write
mutationRecords List<MutationRecord>?
Records of the modification of this channel.
read / write
name String?
The full REST resource name for this channel.
read / write
runtimeType Type
A representation of the runtime type of the object.
type String?
The type of the notification channel.
read / write
userLabels Map<String, String>?
User-supplied key/value data that does not need to conform to the corresponding NotificationChannelDescriptor's schema, unlike the labels field.
read / write
verificationStatus String?
Indicates whether this channel has been verified or not.
read / write


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


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