Pubsub.fromJson constructor

Pubsub.fromJson(
  1. Map json_
)

Implementation

Pubsub.fromJson(core.Map json_)
    : this(
        subscription: json_.containsKey('subscription')
            ? json_['subscription'] as core.String
            : null,
        topic:
            json_.containsKey('topic') ? json_['topic'] as core.String : null,
      );