NotificationChannelDescriptor.fromJson constructor
NotificationChannelDescriptor.fromJson(
- Map json_
Implementation
NotificationChannelDescriptor.fromJson(core.Map json_)
: this(
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.List)
.map((value) => LabelDescriptor.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
launchStage: json_.containsKey('launchStage')
? json_['launchStage'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
supportedTiers: json_.containsKey('supportedTiers')
? (json_['supportedTiers'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);