PubsubConfig.fromJson constructor

PubsubConfig.fromJson(
  1. Map json_
)

Implementation

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