AlertPolicy.fromJson constructor
AlertPolicy.fromJson(
- Map json_
Implementation
AlertPolicy.fromJson(core.Map json_)
: this(
alertStrategy: json_.containsKey('alertStrategy')
? AlertStrategy.fromJson(
json_['alertStrategy'] as core.Map<core.String, core.dynamic>)
: null,
combiner: json_.containsKey('combiner')
? json_['combiner'] as core.String
: null,
conditions: json_.containsKey('conditions')
? (json_['conditions'] as core.List)
.map((value) => Condition.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
creationRecord: json_.containsKey('creationRecord')
? MutationRecord.fromJson(json_['creationRecord']
as core.Map<core.String, core.dynamic>)
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
documentation: json_.containsKey('documentation')
? Documentation.fromJson(
json_['documentation'] as core.Map<core.String, core.dynamic>)
: null,
enabled: json_.containsKey('enabled')
? json_['enabled'] as core.bool
: null,
mutationRecord: json_.containsKey('mutationRecord')
? MutationRecord.fromJson(json_['mutationRecord']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
notificationChannels: json_.containsKey('notificationChannels')
? (json_['notificationChannels'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
severity: json_.containsKey('severity')
? json_['severity'] as core.String
: null,
userLabels: json_.containsKey('userLabels')
? (json_['userLabels'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
validity: json_.containsKey('validity')
? Status.fromJson(
json_['validity'] as core.Map<core.String, core.dynamic>)
: null,
);