PubSub.fromJson constructor

PubSub.fromJson(
  1. Map json_
)

Implementation

PubSub.fromJson(core.Map json_)
    : this(
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        filter: json_.containsKey('filter')
            ? Filter.fromJson(
                json_['filter'] as core.Map<core.String, core.dynamic>)
            : null,
        topic:
            json_.containsKey('topic') ? json_['topic'] as core.String : null,
      );