PubsubTarget.fromJson constructor

PubsubTarget.fromJson(
  1. Map json_
)

Implementation

PubsubTarget.fromJson(core.Map json_)
    : this(
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        data: json_.containsKey('data') ? json_['data'] as core.String : null,
        topicName: json_.containsKey('topicName')
            ? json_['topicName'] as core.String
            : null,
      );