ListenersConfigDump.fromJson constructor

ListenersConfigDump.fromJson(
  1. Map json_
)

Implementation

ListenersConfigDump.fromJson(core.Map json_)
    : this(
        dynamicListeners: json_.containsKey('dynamicListeners')
            ? (json_['dynamicListeners'] as core.List)
                .map((value) => DynamicListener.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        staticListeners: json_.containsKey('staticListeners')
            ? (json_['staticListeners'] as core.List)
                .map((value) => StaticListener.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        versionInfo: json_.containsKey('versionInfo')
            ? json_['versionInfo'] as core.String
            : null,
      );