DynamicListener.fromJson constructor
DynamicListener.fromJson(
- Map json_
Implementation
DynamicListener.fromJson(core.Map json_)
: this(
activeState: json_.containsKey('activeState')
? DynamicListenerState.fromJson(
json_['activeState'] as core.Map<core.String, core.dynamic>)
: null,
drainingState: json_.containsKey('drainingState')
? DynamicListenerState.fromJson(
json_['drainingState'] as core.Map<core.String, core.dynamic>)
: null,
errorState: json_.containsKey('errorState')
? UpdateFailureState.fromJson(
json_['errorState'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
warmingState: json_.containsKey('warmingState')
? DynamicListenerState.fromJson(
json_['warmingState'] as core.Map<core.String, core.dynamic>)
: null,
);