ListenRequest.fromJson constructor
ListenRequest.fromJson(
- Map json_
Implementation
ListenRequest.fromJson(core.Map json_)
: this(
addTarget: json_.containsKey('addTarget')
? Target.fromJson(
json_['addTarget'] as core.Map<core.String, core.dynamic>)
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
removeTarget: json_.containsKey('removeTarget')
? json_['removeTarget'] as core.int
: null,
);